Created
April 9, 2018 09:56
-
-
Save amaalzohny/4a59758841d44494444d3553eb37e5a5 to your computer and use it in GitHub Desktop.
docker
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
#can list running containers, stop the relevant container and then remove the image: | |
docker ps | |
docker stop <containerid> | |
docker rm <containerid> | |
docker rmi <imageid> | |
#If you cannnot find container by docker ps, you can use this to list all already exited containers and remove them. | |
docker ps -a | grep 60afe4036d97 | |
docker rm <containerid> | |
#Note: Be careful of deleting all exited containers at once in case you use Volume-Only containers. These stay in Exit state, but contains useful data. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
after zip files from Mac Zip tool i got error when i deploy to aws multicontainers , i have found solution is after you zip your file
run this command
zip -d docker-multicontainer-v2-src.zip __MACOSX/*