美文网首页
docker run hello-world 报错

docker run hello-world 报错

作者: 火星人想回火星 | 来源:发表于2019-08-05 10:26 被阅读0次

docker run hello-world
报错
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.

解决方案:
修改 /etc/selinux/config中SELINUX=disabled
重启服务器

PS:selinux是linux为了系统安全性做的控制,会控制用户可以访问、读取、修改哪些文件,比如,前面的write /proc/self/attr/keycreate文件没有权限,就是被selinux控制了。

$ /usr/sbin/getenforce

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

相关文章

网友评论

      本文标题:docker run hello-world 报错

      本文链接:https://www.haomeiwen.com/subject/gttrrctx.html