Hi,
Possibly this is because you have SELinux enabled on your CentOS 7. You can make this work in two ways.
-
Set SELinux to Disabled/Permissive mode. You can try
setenforce 0
and try once again to make sure that SELinux is the one who is causing this problem. -
Now if you don’t want to disable SELinux append a
:Z
to the volume declaration so that Docker will fix the SELinux context of the volume directory
Eg: docker run -d -v /myvol:/volmount:Z busybox
So in your case add :Z
to the volume declaration in compose.yml.
Regards