You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The irods provider is failing to restart after the container has been removed when using named volumes. I have been able to work around this error with bind mounts you originally presented. I wanted to bring this to your attention @mjstealey just in case anyone else is experiencing this when using named volumes. Here is the error code.
2017-11-16 17:13:55.550 UTC [48] FATAL: data directory "/var/lib/postgresql/data" has group or world access
2017-11-16 17:13:55.550 UTC [48] DETAIL: Permissions should be u=rwx (0700).
My OS is Centos 7 Atomic Host.
Here are the commands I ran to produce the error.
I suspect you're bumping up against SE Linux enforcement as I do not observe this behavior on CentOS 7 without SE Linux or on the macOS implementation of Docker. I'll look at spinning up a SE Linux enabled box on my end to do some testing.
I'd be curious if you could still get volume mounts working outside of /var/lib/docker/... by using the included UID and GID flags?
These settings will be modified if you change them from the defaults.
The intent is to allow you to set the container 's notion of UID and GID values to be the same as real users on your host system. In this way the data becomes natively permissioned to actual users on the host, and not some arbitrary Docker container user.
I allude to this by example in the real world usage section the README file.
@mjstealey - No problem! I successfully got the volumes mount to work with the default UID and GID outside of /var/lib/docker. I instead placed them in my user's folder at /home/browe/.... This also still worked when restarting the container.
The irods provider is failing to restart after the container has been removed when using named volumes. I have been able to work around this error with bind mounts you originally presented. I wanted to bring this to your attention @mjstealey just in case anyone else is experiencing this when using named volumes. Here is the error code.
2017-11-16 17:13:55.550 UTC [48] FATAL: data directory "/var/lib/postgresql/data" has group or world access
2017-11-16 17:13:55.550 UTC [48] DETAIL: Permissions should be u=rwx (0700).
My OS is Centos 7 Atomic Host.
Here are the commands I ran to produce the error.
$ docker pull mjstealey/irods-provider-postgres:latest
$ docker run -ti --name provider -h irods-provider -v var_irods:/var/lib/irods:z -v etc_irods:/etc/irods:z -v var_pgdata:/var/lib/postgresql/data:z mjstealey/irods-provider-postgres:latest -i run_irods
$ docker stop provider
$ docker rm provider
$ docker run -ti --name provider -h irods-provider -v var_irods:/var/lib/irods:z -v etc_irods:/etc/irods:z -v var_pgdata:/var/lib/postgresql/data:z mjstealey/irods-provider-postgres:latest -x run_irods
Here is an example of a working command with bind mounts.
$ docker run -ti --name provider -h irods-provider -v /var/lib/docker/var_irods:/var/lib/irods:z -v /var/lib/docker/etc_irods:/etc/irods:z -v /var/lib/docker/var_pgdata:/var/lib/postgresql/data:z mjstealey/irods-provider-postgres:latest -i run_irods
The text was updated successfully, but these errors were encountered: