Created
May 7, 2026 23:17
-
-
Save brettinternet/937b44d01bc5b504bdcebc1ad2457fa8 to your computer and use it in GitHub Desktop.
Killing stubborn containers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # source: https://github.com/moby/moby/issues/43094#issuecomment-1000003389 | |
| # by name | |
| sudo kill -9 $(sudo ps awx | grep containerd-shim | grep $(docker ps -q --filter name=<container_name>) | awk '{print $1}') | |
| # by container ID | |
| sudo kill -9 $(sudo ps awx | grep containerd-shim | grep <container_id> | awk '{print $1}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment