- 用法:
docker image [command] - 参数:
[root@bogon ~]# docker image --help
Usage: docker image COMMAND
Manage images
Options:
--help Print usage
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.
Command | Description | 中文 |
---|---|---|
docker image build | Build an image from a Dockerfile | 从Dockerfile构建镜像 |
docker image history | Show the history of an image | 显示镜像的历史记录 |
docker image import | Import the contents from a tarball to create a filesystem image | 从tarball导入内容以创建文件系统镜像 |
docker image inspect | Display detailed information on one or more images | 显示一个或多个镜像的详细信息 |
docker image load | Load an image from a tar archive or STDIN | 从tar存档或STDIN加载图像 |
docker image ls | List images | 列出镜像 |
docker image prune | Remove unused images | 删除未使用的镜像 |
docker image pull | Pull an image or a repository from a registry | 从注册表中提取镜像或仓库 |
docker image push | Push an image or a repository to a registry | 将镜像或仓库推送到注册表 |
docker image rm | Remove one or more images | 删除一个或多个镜像 |
docker image save | Save one or more images to a tar archive (streamed to STDOUT by default) | 将一个或多个镜像保存到tar存档(默认情况下流式传输到STDOUT) |
docker image tag | Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE | 创建一个引用SOURCE_IMAGE的标记TARGET_IMAGE |