docker在centos7中run时遇到的坑?

  1. 抛出问题:**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.
  2. 大致意思就是说:在启动容器时写入write/proc/self/attr/keycreate 失败,因为没有权限,
  3. 网上找了半天,
  4. 解决办法:
  5. 修改 /etc/selinux/config中SELINUX=disabled
    ** 然后重启**
  6. 注意:selinux有三种模式:
  7. enforcing 强制
  8. permissive 宽容的
  9. diabled 禁止的,

你可能感兴趣的:(开发环境问题)