Error response from daemon: OCI runtime create failed: container_linux.go:345: starting c...

        最近在学习docker容器,今天在centos7上面按照官方教程安装docker,安装过程很顺利,完了启动下hello-world测试安装对不对,duang~~~,报了一个错,内容如下:
docker: Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "process_linux.go:430: container init caused \"write /proc/self/attr/keycreate: permission denied\"": unknown.

        谷歌了十来分钟,找到了这个,简书的同志很厉害(自己太菜!!!)呀,赶紧记录下来,后面搞不好还会跳这个坑。

        好了,说下是怎样解决的吧!

        看报错信息,提示由于“/proc/self/attr/keycreate” 这里没有写入权限造成的,需要修改seliunx模式(为什么需要修改这个?找到github上面有类似问题),具体怎样修改,请看这里的5.4.1,把“/etc/selinux/config”里面的SELINUX值修改为disabled,然后保存重启。


参考:

https://www.jianshu.com/p/6a344c8c9101

https://github.com/moby/moby/issues/39109

https://docs.fedoraproject.org/en-US/Fedora/11/html/Security-Enhanced_Linux/sect-Security-Enhanced_Linux-Working_with_SELinux-Enabling_and_Disabling_SELinux.html

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。