Created
June 29, 2022 19:54
-
-
Save Nolwennig/162cdf2d69f0118750f7de6da521693c to your computer and use it in GitHub Desktop.
This file contains 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
# 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