【发布时间】:2018-05-10 10:27:26
【问题描述】:
我可以使用 security.privileged 和 security.nesting 在 Ubuntu 上正常工作。然而,在 centos7 中,docker 守护进程在尝试拉取图像时会失败。它甚至不能运行 hello-world。存在某些文件夹不存在的 cgroup 冲突。无论如何,有没有这样做的成功例子?我最终尝试运行 Kubernetes 并为 master 和 worker 使用 lxc/lxd 容器,但我需要它在 centos 中工作。
确切的错误信息:
docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:279: applying cgroup configuration for process caused \"open /sys/fs/cgroup/systemd/lxc/docker-test/docker/cpuset.cpus: no such file or directory\"": unknown.
ERRO[0000] error waiting for container: context canceled
Exact setup 是一个安装了 lxd 并从 go 构建的 centos7 Digital Ocean Droplet。使用 lxc 我创建了一个 centos7 容器。在那个机器容器中,我正在尝试运行 docker。我意识到这就像容器启动,但它绝对适用于 ubuntu,所以我想它应该适用于 centos。
【问题讨论】:
-
确切的错误信息是什么?是否有一些详细的选项可以添加到失败的命令中?
-
添加到描述中。感谢您的回复。
标签: docker centos lxc cgroups lxd