Browse Source

Update 'README.md'

天问 1 year ago
parent
commit
6bcf061be9
1 changed files with 11 additions and 0 deletions
  1. 11 0
      README.md

+ 11 - 0
README.md

@@ -1,2 +1,13 @@
 # PolarDB-for-PostgreSQL
 # PolarDB-for-PostgreSQL
 
 
+## Usage
+
+```
+# 拉取单节点 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();'
+
+```