Docker启动容器时出现错误

在centos7(装在虚拟机上)中用docker启动一个hadoop容器
命令如下:
docker run -i -t --name Master2 -h Master2 registry.cn-hangzhou.aliyuncs.com/kaibb/hadoop /bin/bash
然后出现了如下错误:
Error response from daemon: updating the store state of sandbox failed: failed to update store for object type *libnetwork.sbState: json: cannot unmarshal object into Go struct field sbState.ExtDNS of type string.

解决方案:

rm -rf /var/lib/docker
systemctl daemon-reload
systemctl restart docker

注》上述问题可以解决,在执行之前请明确在该目录下面存放的是docker的所有镜像,执行此命令意味着删除所有的docker镜像

发布了898 篇原创文章 · 获赞 123 · 访问量 19万+

猜你喜欢

转载自blog.csdn.net/weixin_40816738/article/details/104618638