docker使用非root用戶啟動容器出現“running exec setns process for init caused \"exit status 40\"": unknown”


環境為centos7,linux內核版本為3.10

出現該問題的原因是內核3.10的bug,升級linux內核即可,升級辦法如下,升級完成后重啟系統,選擇對應的內核版本啟動即可。

1、導入key
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org

2、安裝elrepo的yum源
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm

3、安裝內核
在yum的ELRepo源中,有mainline頒布的,可以這樣安裝:
yum --enablerepo=elrepo-kernel install  kernel-ml-devel kernel-ml -y

該問題的討論參見Not able to run container with non root user

升級指定版本內核參見:centos7.4升級內核到4.x


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM