We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
以centos镜像为例
centos
docker run centos
191e8ede2979
docker container ps -a
centos.tar
docker export -o centos.tar 191e8ede2979
docker container rm 191e8ede2979 docker image rmi centos
docker import centos.tar
需要指定名称和标签(默认没有) 没有名称和标签的镜像可以通过docker image prune删除
docker image prune
docker save centos.tar centos
docker image rmi centos
docker load -i centos.tar
不能修改名称和标签(默认自带之前的)
区别:一个操作的是容器,一个操作的是镜像
The text was updated successfully, but these errors were encountered:
No branches or pull requests
export/import
以
centos
镜像为例191e8ede2979
centos.tar
centos.tar
导入为镜像需要指定名称和标签(默认没有)
没有名称和标签的镜像可以通过
docker image prune
删除save/load
以
centos
镜像为例centos.tar
不能修改名称和标签(默认自带之前的)
区别:一个操作的是容器,一个操作的是镜像
The text was updated successfully, but these errors were encountered: