mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-08-10 08:27:25 +00:00
Update Grafana to v13, add version notes
This commit is contained in:
@@ -171,7 +171,7 @@ $ docker run -d \
|
||||
--name postgres \
|
||||
-e POSTGRES_PASSWORD=secret \
|
||||
-v postgres_data:/var/lib/postgresql/data \
|
||||
postgres:16
|
||||
postgres:16 # 确保与环境兼容的 PostgreSQL 版本
|
||||
|
||||
## 即使删除容器,数据仍然保留
|
||||
|
||||
@@ -183,7 +183,7 @@ $ docker run -d \
|
||||
--name postgres \
|
||||
-e POSTGRES_PASSWORD=secret \
|
||||
-v postgres_data:/var/lib/postgresql/data \
|
||||
postgres:16
|
||||
postgres:16 # 确保与环境兼容的 PostgreSQL 版本
|
||||
```
|
||||
|
||||
#### 场景二:多容器共享数据
|
||||
|
||||
Reference in New Issue
Block a user