[英]Docker : Error pulling image (latest) from docker.io
I pushed a docker image from an older dev machine, and now I can't push or pull to that repo.我从旧的开发机器上推送了一个 docker 镜像,现在我无法推送或拉到那个仓库。
The server errors with服务器错误
Invalid parent ID.
And my dev box errors with我的开发箱错误
Error pulling image (latest) from docker.io/repo/appname,
Driver aufs failed to create image rootfs {ID}:
open /mnt/sda1/var/lib/docker/aufs/layers/{ID}: no such file or directory
I'm running OSX 10.11.4 with docker-machine 0.5.4 on both setups.我在两种设置上都运行 OSX 10.11.4 和 docker-machine 0.5.4。
I've tried removing dangling images, stopped images, and I destroyed and rebuilt the docker-machine env.我尝试删除悬空图像,停止图像,并销毁并重建了 docker-machine env。
Any idea whats happened?知道发生了什么吗?
m米
No idea what the issue was in the end, but removing all images, then rebuilding and re pushing fixed it.不知道最后是什么问题,但删除所有图像,然后重建并重新推送修复它。
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
docker rmi $(docker images -a -q)
docker build -t repo/app .
docker push repo/app
And after that I could pull it again on the server and other machines.之后我可以在服务器和其他机器上再次拉它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.