Closed jaspertandy closed 3 years ago
Can confirm this issue persists on macOS 11.4 and Docker for Mac 3.3.3 (64133)
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:
function cs
docker compose ps | awk 'NR>1{print $2}' | ruby -e '$stdin.read.split("\n").map(&:strip).each_slice(3).map { |b| b.join(" ") }.each { |b| `docker compose stop #{b}` }'
end
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
Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.
If you have found a problem that seems similar to this, please open a new issue.
Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked
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"