Images are the read-only templates used to create containers. These commands handle building, downloading, and managing images.
View all local images. #ls #images
docker imagesBuild an image from a Dockerfile in the current directory. #make #compile
docker build -t $tag_name .Download an image from a registry (like Docker Hub). #download #fetch
docker pull $image_nameUpload an image to a registry. #upload #publish
docker push $image_pushDelete an image from your local system. Use --force if it is being used by a stopped container. #rmi #delete #purge
docker rmi $rm_opts $imageCreate a new tag that refers to an existing image. #alias #rename
docker tag $image $new_tagShow the layers and history of an image. #layers #details
docker history $imageSave one or more images to a tar archive for offline sharing. #export #tar #backup
docker save -o $file_name $imageLoad an image from a tar archive. #import #restore
docker load -i $file_name