1. docker image *
管理镜像(Image)相关的系列命令。对 docker 命令进行分类,容器相关的命令在这个子命令下,类似的还有 docker container
短命令和长命令功能一样。
参考表
长命令 | 短命令 |
---|---|
docker image build | docker build |
docker image history | docker history |
docker image import | docker import |
docker image inspect | docker inspect |
docker image load | docker load |
docker image ls | docker ls |
docker image prune | docker prune |
docker image pull | docker pull |
docker image push | docker push |
docker image rm | docker rm |
docker image save | docker save |
docker image tag | docker tag |
1.1. 帮助
$ 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.