1. 拉取镜像
| |
2. 创建容器
| |
参数说明:
| 参数 | 说明 |
|---|---|
| POSTGRES_USER=postgres | 设置 postgres 用户的 |
| POSTGRES_PASSWORD=dataPassword | 设置 postgres 用户的密码 |
| /var/lib/postgresql/data | 容器中 PostgreSQL 数据库的存储路径 |
| |
| |
参数说明:
| 参数 | 说明 |
|---|---|
| POSTGRES_USER=postgres | 设置 postgres 用户的 |
| POSTGRES_PASSWORD=dataPassword | 设置 postgres 用户的密码 |
| /var/lib/postgresql/data | 容器中 PostgreSQL 数据库的存储路径 |