我有一个docker compose文件,其中我正在使用共享卷启动PostgreSQL。但是我不断收到以下错误消息。
2018-10-11 14:57:01.757 GMT [81] LOG: skipping missing configuration
file "/postgresql/data/postgresql.auto.conf"
| 2018-10-11 14:57:01.768 GMT [81] FATAL: data directory "/postgresql/data" has wrong ownership
| 2018-10-11 14:57:01.768 GMT [81] HINT: The server must be started by the user that owns the data directory.
我的docker撰写文件如下
addb:
image : postgres
networks:
- private
ports:
- "5432:5432"
volumes:
- /mnt/shared/app_data/db/postgres/data_db:/postgresql/data
depends_on:
- sol-server
我正在使用RHEL 7.5和Docker 18.06.1-ce版本,构建e68fc7。任何想法我如何解决上述问题。