Created
February 28, 2022 04:34
-
-
Save HUGHNew/277d6e624af60efd50446e526a601e64 to your computer and use it in GitHub Desktop.
some bash code snippet for docker operation(updating)
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
alias Docker="sudo docker" | |
# rm <none> images which is generated by error when building | |
Docker rmi $(Docker images|grep none|awk '{print $3}'|xargs) | |
# remove all containers | |
Docker rm $(Docker ps -aq|xargs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment