diff --git a/README-CN.md b/README-CN.md index f60dcf2538c..ffdce5c1b29 100644 --- a/README-CN.md +++ b/README-CN.md @@ -1,6 +1,6 @@
-[![logo](docs/.vuepress/public/images/polardb.png)](https://developer.aliyun.com/topic/polardb-for-pg) +[![logo](docs/.vuepress/public/images/polardb.png)](https://www.polardbpg.com/home) # PolarDB for PostgreSQL @@ -8,7 +8,7 @@ #### [English](README.md) | 简体中文 -[![official](https://img.shields.io/badge/官方网站-blueviolet?style=for-the-badge&logo=alibabacloud)](https://developer.aliyun.com/topic/polardb-for-pg) +[![official](https://img.shields.io/badge/官方网站-blueviolet?style=for-the-badge&logo=alibabacloud)](https://www.polardbpg.com/home) [![cirrus-ci-stable](https://img.shields.io/cirrus/github/ApsaraDB/PolarDB-for-PostgreSQL/POLARDB_11_STABLE?style=for-the-badge&logo=cirrusci)](https://cirrus-ci.com/github/ApsaraDB/PolarDB-for-PostgreSQL/POLARDB_11_STABLE) [![cirrus-ci-dev](https://img.shields.io/cirrus/github/ApsaraDB/PolarDB-for-PostgreSQL/POLARDB_11_DEV?style=for-the-badge&logo=cirrusci)](https://cirrus-ci.com/github/ApsaraDB/PolarDB-for-PostgreSQL/POLARDB_11_DEV) @@ -58,11 +58,11 @@ PolarDB 采用了基于 Shared-Storage 的存储计算分离架构。数据库 ```bash # 拉取单节点 PolarDB 镜像 -docker pull polardb/polardb_pg_local_instance:single +docker pull polardb/polardb_pg_local_instance # 创建运行并进入容器 -docker run -it --cap-add=SYS_PTRACE --privileged=true --name polardb_pg_single polardb/polardb_pg_local_instance:single bash +docker run -it --rm polardb/polardb_pg_local_instance psql # 测试实例可用性 -psql -h 127.0.0.1 -c 'select version();' +postgres=# SELECT version(); version -------------------------------- PostgreSQL 11.9 (POLARDB 11.9) diff --git a/README.md b/README.md index 32ea75da503..8de04444637 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@
-[![logo](docs/.vuepress/public/images/polardb.png)](https://developer.aliyun.com/topic/polardb-for-pg) +[![logo](docs/.vuepress/public/images/polardb.png)](https://www.polardbpg.com/home) # PolarDB for PostgreSQL @@ -8,7 +8,7 @@ #### English | [简体中文](README-CN.md) -[![official](https://img.shields.io/badge/official%20site-blueviolet?style=for-the-badge&logo=alibabacloud)](https://developer.aliyun.com/topic/polardb-for-pg) +[![official](https://img.shields.io/badge/official%20site-blueviolet?style=for-the-badge&logo=alibabacloud)](https://www.polardbpg.com/home) [![cirrus-ci-stable](https://img.shields.io/cirrus/github/ApsaraDB/PolarDB-for-PostgreSQL/POLARDB_11_STABLE?style=for-the-badge&logo=cirrusci)](https://cirrus-ci.com/github/ApsaraDB/PolarDB-for-PostgreSQL/POLARDB_11_STABLE) [![cirrus-ci-dev](https://img.shields.io/cirrus/github/ApsaraDB/PolarDB-for-PostgreSQL/POLARDB_11_DEV?style=for-the-badge&logo=cirrusci)](https://cirrus-ci.com/github/ApsaraDB/PolarDB-for-PostgreSQL/POLARDB_11_DEV) @@ -58,11 +58,11 @@ If you have Docker installed already,then you can pull the instance image of P ```bash # pull the instance image from DockerHub -docker pull polardb/polardb_pg_local_instance:single +docker pull polardb/polardb_pg_local_instance # create, run and enter the container -docker run -it --cap-add=SYS_PTRACE --privileged=true --name polardb_pg_single polardb/polardb_pg_local_instance:single bash +docker run -it --rm polardb/polardb_pg_local_instance psql # check -psql -h 127.0.0.1 -c 'select version();' +postgres=# SELECT version(); version -------------------------------- PostgreSQL 11.9 (POLARDB 11.9) diff --git a/docs/deploying/fs-pfs.md b/docs/deploying/fs-pfs.md index be7f4241afc..354d9d1f001 100644 --- a/docs/deploying/fs-pfs.md +++ b/docs/deploying/fs-pfs.md @@ -17,13 +17,13 @@ PolarDB File System,简称 PFS 或 PolarFS,是由阿里云自主研发的高 推荐使用 [DockerHub](https://hub.docker.com/u/polardb) 上的 PolarDB for PostgreSQL [可执行文件镜像](https://hub.docker.com/r/polardb/polardb_pg_binary/tags),目前支持 `linux/amd64` 和 `linux/arm64` 两种架构,其中已经包含了编译完毕的 PFS 工具,无需手动编译安装。通过以下命令进入容器即可: ```shell:no-line-numbers -docker pull polardb/polardb_pg_binary:pfs +docker pull polardb/polardb_pg_binary docker run -it \ --cap-add=SYS_PTRACE \ --privileged=true \ --name polardb_pg \ --shm-size=512m \ - polardb/polardb_pg_binary:pfs \ + polardb/polardb_pg_binary \ bash ``` diff --git a/docs/operation/ro-online-promote.md b/docs/operation/ro-online-promote.md index ea8d23b273f..c74dd48bf50 100644 --- a/docs/operation/ro-online-promote.md +++ b/docs/operation/ro-online-promote.md @@ -19,13 +19,13 @@ PolarDB for PostgreSQL 是一款存储与计算分离的云原生数据库,所 为方便起见,本示例使用基于本地磁盘的实例来进行演示。拉取如下镜像并启动容器,可以得到一个基于本地磁盘的 HTAP 实例: ```shell:no-line-numbers -docker pull polardb/polardb_pg_local_instance:htap +docker pull polardb/polardb_pg_local_instance docker run -it \ --cap-add=SYS_PTRACE \ --privileged=true \ --name polardb_pg_htap \ --shm-size=512m \ - polardb/polardb_pg_local_instance:htap \ + polardb/polardb_pg_local_instance \ bash ``` diff --git a/docs/operation/scale-out.md b/docs/operation/scale-out.md index ba95dfba7c2..6e97259903f 100644 --- a/docs/operation/scale-out.md +++ b/docs/operation/scale-out.md @@ -17,13 +17,13 @@ PolarDB for PostgreSQL 是一款存储与计算分离的数据库,所有计算 首先,在已经搭建完毕的共享存储集群上,初始化并启动第一个计算节点,即读写节点,该节点可以对共享存储进行读写。我们在下面的镜像中提供了已经编译完毕的 PolarDB for PostgreSQL 内核和周边工具的可执行文件: ```shell:no-line-numbers -$ docker pull polardb/polardb_pg_binary:pfs +$ docker pull polardb/polardb_pg_binary $ docker run -it \ --cap-add=SYS_PTRACE \ --privileged=true \ --name polardb_pg \ --shm-size=512m \ - polardb/polardb_pg_binary:pfs \ + polardb/polardb_pg_binary \ bash $ ls ~/tmp_basedir_polardb_pg_1100_bld/bin/ @@ -130,13 +130,13 @@ $HOME/tmp_basedir_polardb_pg_1100_bld/bin/psql \ 类似地,在用于部署新计算节点的机器上,拉取镜像并启动带有可执行文件的容器: ```shell:no-line-numbers -docker pull polardb/polardb_pg_binary:pfs +docker pull polardb/polardb_pg_binary docker run -it \ --cap-add=SYS_PTRACE \ --privileged=true \ --name polardb_pg \ --shm-size=512m \ - polardb/polardb_pg_binary:pfs \ + polardb/polardb_pg_binary \ bash ``` diff --git a/docs/operation/tpch-test.md b/docs/operation/tpch-test.md index 9001c082bdf..220559da726 100644 --- a/docs/operation/tpch-test.md +++ b/docs/operation/tpch-test.md @@ -23,13 +23,13 @@ minute: 20 使用 Docker 快速拉起一个基于本地存储的 PolarDB for PostgreSQL 集群: ```shell:no-line-numbers -docker pull polardb/polardb_pg_local_instance:htap +docker pull polardb/polardb_pg_local_instance docker run -it \ --cap-add=SYS_PTRACE \ --privileged=true \ --name polardb_pg_htap \ --shm-size=512m \ - polardb/polardb_pg_local_instance:htap \ + polardb/polardb_pg_local_instance \ bash ``` diff --git a/docs/zh/deploying/fs-pfs.md b/docs/zh/deploying/fs-pfs.md index be7f4241afc..354d9d1f001 100644 --- a/docs/zh/deploying/fs-pfs.md +++ b/docs/zh/deploying/fs-pfs.md @@ -17,13 +17,13 @@ PolarDB File System,简称 PFS 或 PolarFS,是由阿里云自主研发的高 推荐使用 [DockerHub](https://hub.docker.com/u/polardb) 上的 PolarDB for PostgreSQL [可执行文件镜像](https://hub.docker.com/r/polardb/polardb_pg_binary/tags),目前支持 `linux/amd64` 和 `linux/arm64` 两种架构,其中已经包含了编译完毕的 PFS 工具,无需手动编译安装。通过以下命令进入容器即可: ```shell:no-line-numbers -docker pull polardb/polardb_pg_binary:pfs +docker pull polardb/polardb_pg_binary docker run -it \ --cap-add=SYS_PTRACE \ --privileged=true \ --name polardb_pg \ --shm-size=512m \ - polardb/polardb_pg_binary:pfs \ + polardb/polardb_pg_binary \ bash ``` diff --git a/docs/zh/operation/ro-online-promote.md b/docs/zh/operation/ro-online-promote.md index ea8d23b273f..c74dd48bf50 100644 --- a/docs/zh/operation/ro-online-promote.md +++ b/docs/zh/operation/ro-online-promote.md @@ -19,13 +19,13 @@ PolarDB for PostgreSQL 是一款存储与计算分离的云原生数据库,所 为方便起见,本示例使用基于本地磁盘的实例来进行演示。拉取如下镜像并启动容器,可以得到一个基于本地磁盘的 HTAP 实例: ```shell:no-line-numbers -docker pull polardb/polardb_pg_local_instance:htap +docker pull polardb/polardb_pg_local_instance docker run -it \ --cap-add=SYS_PTRACE \ --privileged=true \ --name polardb_pg_htap \ --shm-size=512m \ - polardb/polardb_pg_local_instance:htap \ + polardb/polardb_pg_local_instance \ bash ``` diff --git a/docs/zh/operation/scale-out.md b/docs/zh/operation/scale-out.md index ba95dfba7c2..6e97259903f 100644 --- a/docs/zh/operation/scale-out.md +++ b/docs/zh/operation/scale-out.md @@ -17,13 +17,13 @@ PolarDB for PostgreSQL 是一款存储与计算分离的数据库,所有计算 首先,在已经搭建完毕的共享存储集群上,初始化并启动第一个计算节点,即读写节点,该节点可以对共享存储进行读写。我们在下面的镜像中提供了已经编译完毕的 PolarDB for PostgreSQL 内核和周边工具的可执行文件: ```shell:no-line-numbers -$ docker pull polardb/polardb_pg_binary:pfs +$ docker pull polardb/polardb_pg_binary $ docker run -it \ --cap-add=SYS_PTRACE \ --privileged=true \ --name polardb_pg \ --shm-size=512m \ - polardb/polardb_pg_binary:pfs \ + polardb/polardb_pg_binary \ bash $ ls ~/tmp_basedir_polardb_pg_1100_bld/bin/ @@ -130,13 +130,13 @@ $HOME/tmp_basedir_polardb_pg_1100_bld/bin/psql \ 类似地,在用于部署新计算节点的机器上,拉取镜像并启动带有可执行文件的容器: ```shell:no-line-numbers -docker pull polardb/polardb_pg_binary:pfs +docker pull polardb/polardb_pg_binary docker run -it \ --cap-add=SYS_PTRACE \ --privileged=true \ --name polardb_pg \ --shm-size=512m \ - polardb/polardb_pg_binary:pfs \ + polardb/polardb_pg_binary \ bash ``` diff --git a/docs/zh/operation/tpch-test.md b/docs/zh/operation/tpch-test.md index 9001c082bdf..220559da726 100644 --- a/docs/zh/operation/tpch-test.md +++ b/docs/zh/operation/tpch-test.md @@ -23,13 +23,13 @@ minute: 20 使用 Docker 快速拉起一个基于本地存储的 PolarDB for PostgreSQL 集群: ```shell:no-line-numbers -docker pull polardb/polardb_pg_local_instance:htap +docker pull polardb/polardb_pg_local_instance docker run -it \ --cap-add=SYS_PTRACE \ --privileged=true \ --name polardb_pg_htap \ --shm-size=512m \ - polardb/polardb_pg_local_instance:htap \ + polardb/polardb_pg_local_instance \ bash ```