Home > Enterprise >  docker-compose fork/exec permission denied
docker-compose fork/exec permission denied

Time:07-09

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.

CodePudding user response:

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

CodePudding user response:

I'm having the same issue in my Mac with M1. It seems like an issue with the latest version of Docker Desktop, which is 4.10.1 (82475).

Downgrade to Docker Desktop 4.9.1: https://docs.docker.com/desktop/release-notes/#docker-desktop-491

Or run your container from Terminal:

docker-compose up
  • Related