快速部署

为简化使用,容器内的 `postgres` 用户没有设置密码,仅供体验。如果在生产环境等高安全性需求场合,请务必修改健壮的密码!

仅需单台机器,同时满足以下要求,就可以快速开启您的 PolarDB 之旅:

拉取 PolarDB for PostgreSQL 的 单机实例镜像,运行容器并试用 PolarDB-PG:

:::: code-group ::: code-group-item DockerHub

# 拉取镜像并运行容器
docker pull polardb/polardb_pg_local_instance:15
docker run -it --rm polardb/polardb_pg_local_instance:15 psql
# 测试可用性
postgres=# SELECT version();
                                   version
----------------------------------------------------------------------
 PostgreSQL 15.x (PolarDB 15.x.x.x build xxxxxxxx) on {your_platform}
(1 row)

::: ::: code-group-item 阿里云 ACR

# 拉取镜像并运行容器
docker pull registry.cn-hangzhou.aliyuncs.com/polardb_pg/polardb_pg_local_instance:15
docker run -it --rm registry.cn-hangzhou.aliyuncs.com/polardb_pg/polardb_pg_local_instance:15 psql
# 测试可用性
postgres=# SELECT version();
                                   version
----------------------------------------------------------------------
 PostgreSQL 15.x (PolarDB 15.x.x.x build xxxxxxxx) on {your_platform}
(1 row)

::: ::::

results matching ""

    No results matching ""