Skip to content
Discussion options

You must be logged in to vote

this looks like selinux or apparmor blocking docker from accessing your files.

try this:

# check if selinux is enabled
getenforce

# if it shows Enforcing, try:
sudo setenforce 0
sail up

if that works, selinux was the problem. for permanent fix:

# add :z flag to volume in docker-compose.yml
volumes:
    - .:/var/www/html:z

or you can disable selinux for docker:

sudo setsebool -P container_manage_cgroup on

also check your project folder permissions:

ls -la /path/to/your/project
# should be owned by your user (uid 1000)

let me know if this helps

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@progerWolf
Comment options

Answer selected by progerWolf
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants