Original post is here
Docker Cheat Sheet is a nice documentation. It provides some basic Docker commands and system and is easy to understand.
Set upPull a base image.
It's annoy to restore Container ID, you may forget to restore. You can set below alias. With this, you can get the ID of the last-run Container (15 Docker tips in 5 minutes)
ContainerTo create a Container.
To stop a Container.
To start a Container.
To restart a Container.
To Connect to a running Container.
To copy file in a Container to the host.
To mount the directory in host to a Container.
To delete a Container.
Info of ContainerTo show running Containers. With
To show Container information like IP adress.
To show log of a Container.
To show running process in a Container.
ImageTo create a image from a Container. For tag name, <username>/<imagename> is recommended.
To create a image with Dockerfile.
To login to a image.
To push a imges to remote repository. You need to sign up to Docker index in advance. Exmple uploaded image.
To delete a image
Info of ImageTo show all images
To show image information like IP adress.
To show command history of a image.
|
DevOps >