Skip to content

Commit 612f874

Browse files
authored
doc: update docker.md (jaywcjlove#839)
统一端口号
1 parent 51d30f3 commit 612f874

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docker.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ if010/dameng
919919
### 人大金仓
920920
921921
```bash
922-
docker run -idt -p 5432:54321 --restart=always \
922+
docker run -idt -p 54321:54321 --restart=always \
923923
--name Kingbase --privileged=true \
924924
-e DB_MODE=oracle \
925925
-e NEED_START=yes \
@@ -937,7 +937,7 @@ if010/kingbase:v009r001c001b0025 /usr/sbin/init
937937
-- | --
938938
:-- | --
939939
`-itd` | 以后台方式启动容器,保持 STDIN 打开
940-
`-p 5432:54321` | 将主机的 5432 端口映射到容器的 5432 端口,访问数据库
940+
`-p 54321:54321` | 将主机的 54321 端口映射到容器的 54321 端口,访问数据库
941941
`--name Kingbase` | 给容器指定名称为 "Kingbase"
942942
`--restart=always` | 容器退出时,总是重新启动容器
943943
<!--rehype:className=auto-wrap left-align-->

0 commit comments

Comments
 (0)