diff --git a/README.md b/README.md index b544d46f3cc..479b5b0c63c 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ If you have Docker installed already,then you can pull the instance image of P ```bash # pull the instance image and run the container docker pull polardb/polardb_pg_local_instance:15 -docker run -it --rm polardb/polardb_pg_local_instance:15 psql +docker run -it --cap-add=SYS_PTRACE --privileged=true --rm polardb/polardb_pg_local_instance:15 psql # check postgres=# SELECT version(); version diff --git a/README_zh.md b/README_zh.md index 25e5c6af1a7..cc261a4646a 100644 --- a/README_zh.md +++ b/README_zh.md @@ -60,7 +60,7 @@ PolarDB for PostgreSQL 采用了基于 Shared-Storage 的存储计算分离架 ```bash # 拉取镜像并运行容器 docker pull polardb/polardb_pg_local_instance:15 -docker run -it --rm polardb/polardb_pg_local_instance:15 psql +docker run -it --cap-add=SYS_PTRACE --privileged=true --rm polardb/polardb_pg_local_instance:15 psql # 测试实例可用性 postgres=# SELECT version(); version diff --git a/polar-doc/docs/README.md b/polar-doc/docs/README.md index cb34143a268..c6ef5bc892d 100644 --- a/polar-doc/docs/README.md +++ b/polar-doc/docs/README.md @@ -17,7 +17,7 @@ Pull the [local instance image](https://hub.docker.com/r/polardb/polardb_pg_loca ```bash:no-line-numbers # pull the instance image and run the container docker pull polardb/polardb_pg_local_instance:15 -docker run -it --rm polardb/polardb_pg_local_instance:15 psql +docker run -it --cap-add=SYS_PTRACE --privileged=true --rm polardb/polardb_pg_local_instance:15 psql # check postgres=# SELECT version(); version @@ -32,7 +32,7 @@ postgres=# SELECT version(); ```bash:no-line-numbers # pull the instance image and run the container 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 +docker run -it --cap-add=SYS_PTRACE --privileged=true --rm registry.cn-hangzhou.aliyuncs.com/polardb_pg/polardb_pg_local_instance:15 psql # check postgres=# SELECT version(); version diff --git a/polar-doc/docs/deploying/db-localfs.md b/polar-doc/docs/deploying/db-localfs.md index eb58ab6592c..efb21ce4fec 100644 --- a/polar-doc/docs/deploying/db-localfs.md +++ b/polar-doc/docs/deploying/db-localfs.md @@ -48,6 +48,7 @@ docker pull registry.cn-hangzhou.aliyuncs.com/polardb_pg/polardb_pg_local_instan ```bash:no-line-numbers docker run -it --rm \ + --cap-add=SYS_PTRACE --privileged=true \ --env POLARDB_PORT=5432 \ --env POLARDB_USER=u1 \ --env POLARDB_PASSWORD=your_password \ @@ -61,6 +62,7 @@ docker run -it --rm \ ```bash:no-line-numbers docker run -it --rm \ + --cap-add=SYS_PTRACE --privileged=true \ --env POLARDB_PORT=5432 \ --env POLARDB_USER=u1 \ --env POLARDB_PASSWORD=your_password \ @@ -81,6 +83,7 @@ docker run -it --rm \ ```bash:no-line-numbers docker run -d \ + --cap-add=SYS_PTRACE --privileged=true \ -p 54320-54322:5432-5434 \ -v ${your_data_dir}:/var/polardb \ polardb/polardb_pg_local_instance:15 @@ -91,6 +94,7 @@ docker run -d \ ```bash:no-line-numbers docker run -d \ + --cap-add=SYS_PTRACE --privileged=true \ -p 54320-54322:5432-5434 \ -v ${your_data_dir}:/var/polardb \ registry.cn-hangzhou.aliyuncs.com/polardb_pg/polardb_pg_local_instance:15 @@ -106,6 +110,7 @@ docker run -d \ ```bash:no-line-numbers docker run -d \ + --cap-add=SYS_PTRACE --privileged=true \ --network=host \ -v ${your_data_dir}:/var/polardb \ polardb/polardb_pg_local_instance:15 @@ -116,6 +121,7 @@ docker run -d \ ```bash:no-line-numbers docker run -d \ + --cap-add=SYS_PTRACE --privileged=true \ --network=host \ -v ${your_data_dir}:/var/polardb \ registry.cn-hangzhou.aliyuncs.com/polardb_pg/polardb_pg_local_instance:15 diff --git a/polar-doc/docs/zh/README.md b/polar-doc/docs/zh/README.md index 10742b607ed..6428301fac5 100644 --- a/polar-doc/docs/zh/README.md +++ b/polar-doc/docs/zh/README.md @@ -17,7 +17,7 @@ footer: Apache 2.0 Licensed | Copyright © Alibaba Group, Inc. ```bash:no-line-numbers # 拉取镜像并运行容器 docker pull polardb/polardb_pg_local_instance:15 -docker run -it --rm polardb/polardb_pg_local_instance:15 psql +docker run -it --cap-add=SYS_PTRACE --privileged=true --rm polardb/polardb_pg_local_instance:15 psql # 测试可用性 postgres=# SELECT version(); version @@ -32,7 +32,7 @@ postgres=# SELECT version(); ```bash:no-line-numbers # 拉取镜像并运行容器 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 +docker run -it --cap-add=SYS_PTRACE --privileged=true --rm registry.cn-hangzhou.aliyuncs.com/polardb_pg/polardb_pg_local_instance:15 psql # 测试可用性 postgres=# SELECT version(); version diff --git a/polar-doc/docs/zh/deploying/db-localfs.md b/polar-doc/docs/zh/deploying/db-localfs.md index eb58ab6592c..efb21ce4fec 100644 --- a/polar-doc/docs/zh/deploying/db-localfs.md +++ b/polar-doc/docs/zh/deploying/db-localfs.md @@ -48,6 +48,7 @@ docker pull registry.cn-hangzhou.aliyuncs.com/polardb_pg/polardb_pg_local_instan ```bash:no-line-numbers docker run -it --rm \ + --cap-add=SYS_PTRACE --privileged=true \ --env POLARDB_PORT=5432 \ --env POLARDB_USER=u1 \ --env POLARDB_PASSWORD=your_password \ @@ -61,6 +62,7 @@ docker run -it --rm \ ```bash:no-line-numbers docker run -it --rm \ + --cap-add=SYS_PTRACE --privileged=true \ --env POLARDB_PORT=5432 \ --env POLARDB_USER=u1 \ --env POLARDB_PASSWORD=your_password \ @@ -81,6 +83,7 @@ docker run -it --rm \ ```bash:no-line-numbers docker run -d \ + --cap-add=SYS_PTRACE --privileged=true \ -p 54320-54322:5432-5434 \ -v ${your_data_dir}:/var/polardb \ polardb/polardb_pg_local_instance:15 @@ -91,6 +94,7 @@ docker run -d \ ```bash:no-line-numbers docker run -d \ + --cap-add=SYS_PTRACE --privileged=true \ -p 54320-54322:5432-5434 \ -v ${your_data_dir}:/var/polardb \ registry.cn-hangzhou.aliyuncs.com/polardb_pg/polardb_pg_local_instance:15 @@ -106,6 +110,7 @@ docker run -d \ ```bash:no-line-numbers docker run -d \ + --cap-add=SYS_PTRACE --privileged=true \ --network=host \ -v ${your_data_dir}:/var/polardb \ polardb/polardb_pg_local_instance:15 @@ -116,6 +121,7 @@ docker run -d \ ```bash:no-line-numbers docker run -d \ + --cap-add=SYS_PTRACE --privileged=true \ --network=host \ -v ${your_data_dir}:/var/polardb \ registry.cn-hangzhou.aliyuncs.com/polardb_pg/polardb_pg_local_instance:15