docker-compose fork/exec permission denied

Viewed 3182

Last night I updated Docker desktop to the latest version 4.10.1 and today when I tried to run my containers, I get this error:

enter image description here

Cannot start Docker Compose application. Reason: fork/exec [docker-app-path]/bin/docker-compose-v1: permission denied

I'm on a Mac with M1.

I checked some issues, where people suggest adding the command RUN chmod 777 /root to my Dockerfile, but I've got 8 separate apps running, and it's a team-shared repo, so updating the Dockerfiles for this is not the most viable solution.

3 Answers

Had this issue again after upgrading to macOS Monterey 12.5 while having Docker 4.10, but the upgrade of Docker to 4.11.1 solved it completely.

I think this is permission issue with your docker-compose file, not Dockerfile of application. don't do 777 to /root. May be below command will resolve your issue.

which docker-compose this will give you the path of docker-compose

chmod +rwx /usr/local/bin/docker-compose replace /usr/local/bin/docker-compose with your docker-compose path

Related