"docker image" - Manage Images

Q

How to manage images with "docker image" commands?

✍: FYIcenter.com

A

A Docker image is a binary file used to build containers. Images are used to store and ship applications. You can use "docker image" commands to manage Docker images.

Here is a list of sub-commands supported by "docker image":

$ docker image --help

Usage:  docker image COMMAND

Manage images

Commands:
  build       Build an image from a Dockerfile
  history     Show the history of an image
  import      Import the contents from a tarball to create a filesystem image
  inspect     Display detailed information on one or more images
  load        Load an image from a tar archive or STDIN
  ls          List images
  prune       Remove unused images
  pull        Pull an image or a repository from a registry
  push        Push an image or a repository to a registry
  rm          Remove one or more images
  save        Save one or more images to a tar archive (streamed to STDOUT by default)
  tag         Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE

Run 'docker image COMMAND --help' for more information on a command.

 

"docker image list" - List All Images

"docker container rm ..." - Remove All Containers

Docker Client (or CLI) on Ubuntu

⇑⇑ Docker Container Platform - Tutorials

2019-04-05, 190👍, 0💬