Skip to content

Instantly share code, notes, and snippets.

docker rmi $(docker images -q)
docker rmi $(docker images -f dangling=true -q)
docker rmi $(docker ps -q)
or
docker images -q |xargs docker rmi
docker tag <image-d> <tag-name>
docker tag c0c21e0808be rabbitmq:0.7
# you can compress image as tar file and transfer it
docker save -o <saving name> <image id>
docker save -o db.tar e0d9768dfdbf
# load saved image(compressed file) in to docker
docker load -i <saved file>
docker load -i db.tar
docker start <container-id>
docker stop <container-id>
docker restart <container-id>