Press "Enter" to skip to content

新版Docker 启动失败

最近更新了服务器上的docker版本,在启动容器的时候报这个错误:

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. ERRO[0000] error waiting for container: context canceled

网上查了资料,大概是说可能是selinux导致的问题。然后用下面的指令可以解决问题,或者直接关闭selinux。

sudo semanage permissive -a container_runtime_t

参考资料

2 Comments

  1. lmw
    lmw 2021年6月8日

    sudo semanage permissive -a container_runtime_t
    命令报错:
    ModuleNotFoundError: No module named ‘seobject’

    • admin
      admin 2021年6月17日

      那你直接关闭 selinux呗。

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注