Docker: unable to remount sys readonly: unable to mount sys as readonly max retries reached

原文链接:Docker: unable to remount sys readonly: unable to mount sys as readonly max retries reached

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

$ sudo docker run -i -t centos /bin/bash
unable to remount sys readonly: unable to mount sys as readonly max retries reached

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

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

然后重新启动Docker服务

	
sudo /etc/init.d/docker restart


你可能感兴趣的:(Docker: unable to remount sys readonly: unable to mount sys as readonly max retries reached)