chicrobot-patch-1

This commit is contained in:
chicrobot committed 2025-11-28 00:35:18 +08:00
1 parent 4a4a719c6c
commit 58e3e3f51e
1 file changed
+21
+21
View File
@@ -0,0 +1,21 @@
## 拉取镜像
```
docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/bitnami/postgresql:16
docker tag swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/bitnami/postgresql:16 docker.io/bitnami/postgresql:16
docker rmi swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/bitnami/postgresql:16
```
## 数据持久化
```
mkdir -p ./data/postgresql
```
## 运行容器
```
docker run -d \
--name postgresql \
-e POSTGRES_PASSWORD=password \
-p 5432:5432 \
-v ./data/postgresql:/var/lib/postgresql/data \
postgres:16
```