PolarDBforPostgreSQL/docs/zh
dengwendi 10ecb96088 INIT 2023-11-15 15:13:09 +08:00
..
contributing INIT 2023-11-15 15:13:09 +08:00
deploying INIT 2023-11-15 15:13:09 +08:00
development INIT 2023-11-15 15:13:09 +08:00
features/v11 INIT 2023-11-15 15:13:09 +08:00
imgs INIT 2023-11-15 15:13:09 +08:00
operation INIT 2023-11-15 15:13:09 +08:00
roadmap INIT 2023-11-15 15:13:09 +08:00
theory INIT 2023-11-15 15:13:09 +08:00
README.md INIT 2023-11-15 15:13:09 +08:00

README.md

home title heroImage footer
true 文档 /images/polardb.png Apache 2.0 Licensed | Copyright © Alibaba Group, Inc.

通过 Docker 快速使用

从 DockerHub 上拉取 PolarDB for PostgreSQL 的 本地存储实例镜像,创建、运行并进入容器,然后直接使用 PolarDB

:::: code-group ::: code-group-item 单节点实例

# 拉取单节点 PolarDB 镜像
docker pull polardb/polardb_pg_local_instance:single
# 创建运行并进入容器
docker run -it --cap-add=SYS_PTRACE --privileged=true --name polardb_pg_single polardb/polardb_pg_local_instance:single bash
# 测试实例可用性
psql -h 127.0.0.1 -c 'select version();'
            version
--------------------------------
 PostgreSQL 11.9 (POLARDB 11.9)
(1 row)

::: ::: code-group-item 多节点实例

# 拉取多节点 PolarDB 镜像
docker pull polardb/polardb_pg_local_instance:withrep
# 创建运行并进入容器
docker run -it --cap-add=SYS_PTRACE --privileged=true --name polardb_pg_withrep polardb/polardb_pg_local_instance:withrep bash
# 测试实例可用性
psql -h 127.0.0.1 -c 'select version();'
            version
--------------------------------
 PostgreSQL 11.9 (POLARDB 11.9)
(1 row)

:::

::: code-group-item HTAP 实例

# 拉取 HTAP PolarDB 镜像
docker pull polardb/polardb_pg_local_instance:htap
# 创建运行并进入容器
docker run -it --cap-add=SYS_PTRACE --privileged=true --name polardb_pg_htap polardb/polardb_pg_local_instance:htap bash
# 测试实例可用性
psql -h 127.0.0.1 -c 'select version();'
            version
--------------------------------
 PostgreSQL 11.9 (POLARDB 11.9)
(1 row)

::: ::::