使用docker tag命令为镜像创建一个新的标签,格式为:docker tag <原镜像名>:<原标签> <新镜像名>:<新标签>
docker tag b1d9df8ab815 ubuntu:24.04
导出镜像
C:\>docker save ubuntu:latest > d:\ubuntu\ubuntu.tar
导入镜像
C:\>docker load < j:\autosshnginx.tar
Loaded image: ubuntu:latest
查看导入的镜像
C:\>docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu latest e4c58958181a 2 weeks ago 77.8MB
运行导入的镜像
C:\>docker run -it ubuntu
root@d4a5e6ac1ca5:/#
1.
1.
install the package maintainer's version4.
安装包维护者的version4。
show a side-by-side difference between the versions2.
显示两个版本之间的并排差异。
keep the local version currently installed5.
保持当前安装的本地版本5。
start a new shell to examine the situation3.
启动一个新的shell来检查情况。
show the differences between the versions
显示版本之间的差异