Image

  1. Build

docker build -t <image_name> 
Ex: docker build -t demo .

To build an image from a Dockerfile.

  1. Images

docker images

To list images.

  1. Commit

docker commit <container_name>

To create a new image from a container’s changes.

  1. Load

docker load
Ex: docker load < myimage.tar

To load an image from a tar archive or STDIN.

  1. History

docker history <container_name>

To show the history of an image.

  1. Import

To import the contents from a tarball to create a filesystem image.

  1. Remove

To remove one or more images.

  1. Save

To save images to a tar archive or STDOUT.

  1. Tag

To tag an image into a repository.

  1. Restart

Restart an existing running container.

  1. Kill

Delete running container forcefull.

  1. Pause and Unpause

  1. Prune

Remove Unused images, volumes and networks.

  1. Rename

Renames an existing container.

Last updated