Docker Images - The Commands
-
docker image pullis the command to download images. We pull images from repositories inside of remote registries. By default, images will be pulled from repositories on Docker Hub. The following command will pull the image tagged aslatestfrom the alpine repository on Docker Hub:docker image pull alpine:latest. -
docker image lslists all of the images stored in your Docker host’s local image cache. To see the SHA256 digests of images add the--digestsflag. -
docker image inspectis a thing of beauty! It gives you all of the glorious details of an image—layer data and metadata. -
docker manifest inspectallows you to inspect the manifest list of any image stored on Docker Hub. This will show the manifest list for theredisimage:docker manifest inspect redis. -
docker buildxis a Docker CLI plugin that extends the Docker CLI to support multi-arch builds. -
docker image rmis the command to delete images. This command shows how to delete thealpine:latestimage:docker image rm alpine:latest. You cannot delete an image that is associated with a container in the running (Up) or stopped (Exited) states.