Skip to content
Advertisement

Incorrect permissions for file with docker compose volume? 13: Permission denied

I have the following docker_compose.yaml:

JavaScript

When I run via docker compose I get the following error:

JavaScript

So to investigate I re-ran just the nginx container:

JavaScript

ssh‘d in and I see:

JavaScript

I consulted the following Q and others and they seem to suggest to just restart the docker service, so I did and I still get ? permissions upon re running.

I assume that this is causing the permission error? If so, how can I set the correct permissions on this nginx config file? Is this really a volume permission issue?

Versions:

JavaScript

Advertisement

Answer

I think it was an SELinux thing, appending :z to the volume fixed it.

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement