docker-compose fork/exec permission denied
Asked Answered
L

3

17

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.

Lemmueu answered 8/7, 2022 at 9:13 Comment(1)
may be this is your issueGrackle
I
15

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
Indoor answered 8/7, 2022 at 22:0 Comment(1)
Thx! I started it from the terminal once. After that the App was working properly and the error was goneSmile
H
3

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.

Hightoned answered 8/8, 2022 at 14:6 Comment(0)
L
2

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

Liger answered 8/7, 2022 at 9:34 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.