Keyword Description
Run as a daemon  docker run -d [IMAGE] /bin/sh -c "while true; do sleep 1000; done"
Open a new shell docker exec -ti [CONTAINER_ID] bash
Detach Ctrl-p + Ctrl-q
Capture image1)How to take container snapshots in docker  docker commit [OPTIONS] CONTAINER [REPOSITORY[:TAG]]
Export image2)Export and Import a Docker Image Between Nodes  docker save myimage > /tmp/myimage.tar
List images3)images docker images
Tag image docker tag myimage newimage:latest
Rename container docker rename [OLD_NAME] [NEW_NAME]
Untag image docker rmi myimage
Check IP address  docker inspect <container id>

References   [ + ]

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.