docker images
如镜像ID是62cfce4d2e9a
docker save 62cfce4d2e9a > /opt/nginx.img
nginx.img 导出的镜像名称
scp /opt/nginx.img root@node1:~/imags/
docker load < ~/images/nginx.img
执行过程以及结果:
43e653f84b79: Loading layer [==================================================>] 207.2 MB/207.2 MB
8cf437324713: Loading layer [==================================================>] 425.6 MB/425.6 MB
Loaded image ID: sha256:62cfce4d2e9a0e63f0715631a75cbd65501a004fc1e3a7b6d25288d853ab8f35
docker iamges
发现镜像62cfce4d2e9a 没有仓库名,tag
docker tag 62cfce4d2e9a kafka:v1.0
其中,kafka是REPOSITORY, v1.0是tag
docker rmi -f kakfa:v1.0
原文地址:http://blog.51cto.com/xingej/2121683