Open link in a new tab

Content

Expand project menu

docker instalation with external volumes

Hi,

I am following the docker guidelines but instead of binding the instalation to local directories I try to map them to external volumes so it can be deployed into swarm and share the data

Unfortunately on a volume the postgress database folder is owned by root while postgress runs on it's own user

So I am getting an error:

Starting PostgreSQL 9.6 database server: mainError: Config owner (postgres:102) and data owner (root:0) do not match, and config owner is not root ... failed!

is there any way to fix it?