Chase Excellence and Success Will Follow
这个问题难受了好几天了,各种扩展禁用都不行,最后发现下面的解决办法
https://www.v2ex.com/amp/t/722897
使用docker save -o tar包名称 镜像名称:tag导出镜像,然后使用docker laod -i tar包名称导入镜像。而不要使用docker save -o tar名称 镜像id进行镜像导出,因为这样再使用docker laod -i tar包名称进行镜像导入的时候,会形成悬浮镜像。也就是导入的镜像没有名称和tag,需要我们自己使用docker tag 镜像id 新镜像名称:新tag进行命名。
docker save -o tar包名称 镜像名称:tag
docker laod -i tar包名称
docker save -o tar名称 镜像id
docker tag 镜像id 新镜像名称:新tag