docker:Error response from daemon: unable to remount sys readonly: unable to mount sys as readonly max retries reached

Docker在CentoOS6运行一个容器的时候出现下面的错误

[codesyntax lang="bash"]

[root@kvm ~]# docker run -i -t centos /bin/bash
2014/08/20 14:16:41 Error response from daemon: Cannot start container 2943ca118fe6082873601b110186242ed5d1524b9c2d9be213a64cf11d0dcdec: unable to remount sys readonly: unable to mount sys as readonly max retries reached

[/codesyntax]

碰到这个问题需要修改Docker的配置参数把/etc/sysconfig/docker文件中的other-args更改为:
[codesyntax lang="bash"]

other_args="--exec-driver=lxc --selinux-enabled"

[/codesyntax]

然后重新启动Docker服务
sudo /etc/init.d/docker restart

参考资料

http://www.kongxx.info/blog/?p=55

http://www.widuu.com/chinese_docker/installation/centos.html

您可以选择一种方式赞助本站

支付宝转账赞助

支付宝扫一扫赞助

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

图片 表情