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

????????最近在學(xué)習(xí)docker容器,今天在centos7上面按照官方教程安裝docker,安裝過程很順利,完了啟動下hello-world測試安裝對不對,duang~~~,報了一個錯,內(nèi)容如下:
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.

????????谷歌了十來分鐘,找到了這個,簡書的同志很厲害(自己太菜?。。。┭剑s緊記錄下來,后面搞不好還會跳這個坑。

? ? ? ? 好了,說下是怎樣解決的吧!

????????看報錯信息,提示由于“/proc/self/attr/keycreate” 這里沒有寫入權(quán)限造成的,需要修改seliunx模式(為什么需要修改這個?找到github上面有類似問題),具體怎樣修改,請看這里的5.4.1,把“/etc/selinux/config”里面的SELINUX值修改為disabled,然后保存重啟。


參考:

http://www.itdecent.cn/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

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

友情鏈接更多精彩內(nèi)容