Skip to content

Instantly share code, notes, and snippets.

@Nolwennig
Created June 29, 2022 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nolwennig/162cdf2d69f0118750f7de6da521693c to your computer and use it in GitHub Desktop.
Save Nolwennig/162cdf2d69f0118750f7de6da521693c to your computer and use it in GitHub Desktop.
# todo
# Inspired from https://gist.github.com/Nolwennig/57156f68d2aab1931e863a029cbf5dc0
# commmand list all containers docker
docker ps -a
# command to shown docker active
docker ps
# diff beetween active and all containers
# with the diff result pipe to sed to retrieve only container id
# use container ids result feed docker rm command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment