You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On projects with a large number of services, I would expect docker compose stop to successfully stop all running containers for that project.
Actual behavior
docker compose stop appears to hang, containers can't be stopped at all by issuing specific docker compose stop SERVICENAME or docker stop CONTAINERNAME. The only way to stop the containers is to restart Docker for Mac.
Two things fix this issue:
Disabling gRPC FUSE (not sustainable in my opinion as it seems a lot faster and more stable than osxfuse)
Stopping containers one-by-one. Fish command: for srv in (docker compose ps | awk 'NR>1{print $2}'); docker compose stop $srv; end
Just to update that this now seems fixed in my example repo above on 3.4.0 (65384) but I am still able to reproduce on other real-world docker compose projects so I will update the repo above with another failing example.
I am still able to reliably stop containers in groups of 3 using the following fish shell script, if that helps at all:
Issues go stale after 90 days of inactivity.
Mark the issue as fresh with /remove-lifecycle stale comment.
Stale issues will be closed after an additional 30 days of inactivity.
Prevent issues from auto-closing with an /lifecycle frozen comment.
If this issue is safe to close now please do so.
Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle stale
Expected behavior
On projects with a large number of services, I would expect
docker compose stop
to successfully stop all running containers for that project.Actual behavior
docker compose stop
appears to hang, containers can't be stopped at all by issuing specificdocker compose stop SERVICENAME
ordocker stop CONTAINERNAME
. The only way to stop the containers is to restart Docker for Mac.Two things fix this issue:
for srv in (docker compose ps | awk 'NR>1{print $2}'); docker compose stop $srv; end
Information
Steps to reproduce the behavior
To reproduce this issue, you can:
docker compose up
docker compose stop
and some containers will stop, but then they just hang on "stopping"The text was updated successfully, but these errors were encountered: