File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ minute: 5
3333``` bash:no-line-numbers
3434# 拉取镜像并运行容器
3535docker pull polardb/polardb_pg_local_instance:15
36- docker run -it --rm polardb/polardb_pg_local_instance:15 psql
36+ docker run -it --cap-add=SYS_PTRACE --privileged=true -- rm polardb/polardb_pg_local_instance:15 psql
3737# 测试可用性
3838postgres=# SELECT version();
3939 version
@@ -47,7 +47,7 @@ postgres=# SELECT version();
4747``` bash:no-line-numbers
4848# 拉取镜像并运行容器
4949docker pull registry.cn-hangzhou.aliyuncs.com/polardb_pg/polardb_pg_local_instance:15
50- docker run -it --rm registry.cn-hangzhou.aliyuncs.com/polardb_pg/polardb_pg_local_instance:15 psql
50+ docker run -it --cap-add=SYS_PTRACE --privileged=true -- rm registry.cn-hangzhou.aliyuncs.com/polardb_pg/polardb_pg_local_instance:15 psql
5151# 测试可用性
5252postgres=# SELECT version();
5353 version
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ minute: 5
3333``` bash:no-line-numbers
3434# 拉取镜像并运行容器
3535docker pull polardb/polardb_pg_local_instance:15
36- docker run -it --rm polardb/polardb_pg_local_instance:15 psql
36+ docker run -it --cap-add=SYS_PTRACE --privileged=true -- rm polardb/polardb_pg_local_instance:15 psql
3737# 测试可用性
3838postgres=# SELECT version();
3939 version
@@ -47,7 +47,7 @@ postgres=# SELECT version();
4747``` bash:no-line-numbers
4848# 拉取镜像并运行容器
4949docker pull registry.cn-hangzhou.aliyuncs.com/polardb_pg/polardb_pg_local_instance:15
50- docker run -it --rm registry.cn-hangzhou.aliyuncs.com/polardb_pg/polardb_pg_local_instance:15 psql
50+ docker run -it --cap-add=SYS_PTRACE --privileged=true -- rm registry.cn-hangzhou.aliyuncs.com/polardb_pg/polardb_pg_local_instance:15 psql
5151# 测试可用性
5252postgres=# SELECT version();
5353 version
You can’t perform that action at this time.
0 commit comments