Image
Build
docker build -t <image_name>
Ex: docker build -t demo .To build an image from a Dockerfile.
Images
docker imagesTo list images.
Commit
docker commit <container_name>To create a new image from a container’s changes.
Load
docker load
Ex: docker load < myimage.tarTo load an image from a tar archive or STDIN.
History
docker history <container_name>To show the history of an image.
Import
To import the contents from a tarball to create a filesystem image.
Remove
To remove one or more images.
Save
To save images to a tar archive or STDOUT.
Tag
To tag an image into a repository.
Restart
Restart an existing running container.
Kill
Delete running container forcefull.
Pause and Unpause
Prune
Remove Unused images, volumes and networks.
Rename
Renames an existing container.
Last updated