for-win icon indicating copy to clipboard operation
for-win copied to clipboard

Cannot stop Docker Compose application. Reason: exit status 1

Open QuAzI opened this issue 3 years ago • 45 comments

Some docker containers runs from docker-compose.yml I can stop them one by one from menu but can't stop all from one group. Looks like docker compose stop fired in wrong directory and have to be fired in the same directory where docker-compose.yml placed. Take dir for first container in group

docker inspect 1c84e69c1947 --format '{{ index .Config.Labels \"com.docker.compose.project.working_dir\" }}'

and use it to exec docker compose whatever

QuAzI avatar Oct 04 '22 11:10 QuAzI

I can confirm this. This is an issue since a long time. image

klodoma avatar Oct 18 '22 17:10 klodoma

I have this issue also image

akulov avatar Oct 21 '22 15:10 akulov

Confirmed for Docker Desktop 4.13.1 (90346)

blechema avatar Oct 31 '22 16:10 blechema

+1

manodupont avatar Nov 04 '22 17:11 manodupont

#1 - after fresh update

katipierson avatar Nov 07 '22 10:11 katipierson

Same thing here, can't start or stop all of them at the same time, but one by one it works perfectly fine

zvillon avatar Nov 08 '22 08:11 zvillon

Confirmed for Docker Desktop 4.13.1 (90346)

+1

ChrisKulesza avatar Nov 09 '22 07:11 ChrisKulesza

Same issue on MacOS version

slowpokefarm avatar Nov 11 '22 08:11 slowpokefarm

Confirmed for new Version 4.14.0 (91374) as well

blechema avatar Nov 14 '22 10:11 blechema

Same problem here, MacOS. Docker Desktop 4.14.0 (91374).

romanvincit avatar Nov 15 '22 11:11 romanvincit

Looks like it works in 4,14 but... You have to enable "Use Docker Compose V2" before container created.

QuAzI avatar Nov 15 '22 15:11 QuAzI

Looks like it works in 4,14 but... You have to enable "Use Docker Compose V2" before container created.

Doesn't exactly sounds like "works" then. What if you don't use V2? Or if you don't have the option to recreate a container? This is a regression and there's no reason to close this issue as solved.

slowpokefarm avatar Nov 15 '22 15:11 slowpokefarm

Looks like it works in 4,14 but... You have to enable "Use Docker Compose V2" before container created.

Doesn't exactly sounds like "works" then. What if you don't use V2? Or if you don't have the option to recreate a container? This is a regression and there's no reason to close this issue as solved.

Agree with you. We use composer v1 in our project

akulov avatar Nov 15 '22 15:11 akulov

Same problem here. I downgraded to 4.12.0 and it works as before.

https://docs.docker.com/desktop/release-notes/#docker-desktop-4120

adentya avatar Nov 18 '22 12:11 adentya

+1 facing the same issue

som-sama avatar Dec 09 '22 19:12 som-sama

Still having this issue with docker compose v2 enabled.

ljo123 avatar Dec 14 '22 14:12 ljo123

I encountered this issue when trying to stop/delete a group of containers.

Had to stop/delete containers one by one.

CPoncet avatar Dec 15 '22 07:12 CPoncet

+1 having exactly same issue. Never touched docker-compose v2 and my docker containers just stopped working. But works like a charm starting and stopping one by one.

spake-xx avatar Dec 19 '22 06:12 spake-xx

Guys, I found a solution. I you are on mac the air play uses the 5000 port due to which this issue arise. I stopped the airplay and after that, this issue got solved. Checkout this link to understand better.

https://developer.apple.com/forums/thread/682332

som-sama avatar Dec 19 '22 18:12 som-sama

Same here. succeed on docker compose but it is getting error. was working fine till yesterday...

ter1203 avatar Dec 21 '22 17:12 ter1203

Same issue here

nerdess avatar Jan 04 '23 16:01 nerdess

Same issue here, but I am using Windows, and it works fine with 4.11 version but was trapped in this error with 4.15

KobeNorris avatar Jan 08 '23 21:01 KobeNorris

Same +1

vittoriodev avatar Jan 09 '23 06:01 vittoriodev

Confirmed for new version 4.15.0 (93002) as well

blechema avatar Jan 09 '23 09:01 blechema

Confirmed for new version 4.16.1 (95567) also

blechema avatar Jan 14 '23 07:01 blechema

Confirming affected also on latest version. Downgrading to 4.11 restored functionality

skye-harris avatar Jan 16 '23 02:01 skye-harris

same issue on my pc. v4.15.0

rajibbinalam avatar Feb 08 '23 18:02 rajibbinalam

same issue on my pc. v4.15.0

rajibbinalam avatar Feb 08 '23 18:02 rajibbinalam

Happened to me after changing permissions to all files in folder. Changing them back fixed it.

ArvisCe avatar Feb 18 '23 17:02 ArvisCe

Same issue for Docker Desktop Mac 4.16.2, Docker version 20.10.22 build 3a2c30b, Docker Compose version v2.15.1.

Containers just stop working if restarting and hangs.

Fixable with an engine restart or killall command.

jjphung avatar Feb 22 '23 07:02 jjphung