docker 更新后无法使用

docker not working after update

我将 fedora server 23 更新为 fedora server 25。一切正常执行 docker。这很糟糕,因为我现在有大约 28 个容器应该 运行。我发现这可能是 SystemD 以及 cgroups 文件系统如何挂载的问题。所以我添加了

GRUB_CMDLINE_LINUX="systemd.legacy_systemd_cgroup_controller=yes"

但是还是不行。在我的系统日志文件中,我可以看到更多错误

Jan 30 08:23:50 kindred.one systemd[1]: libcontainer-7475-systemd-test-default-dependencies.scope: Scope has no PIDs. Refusing.
Jan 30 08:23:50 kindred.one systemd[1]: libcontainer-7475-systemd-test-default-dependencies.scope: Scope has no PIDs. Refusing.

但我没有发现任何关于此错误的有用信息。

这是我在终端上遇到的错误。

/usr/bin/docker-current: Error response from daemon: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"process_linux.go:334: running prestart hook 1 caused \\"error running hook: exit status 1, stdout: , stderr: \\"\"\n".

编辑:

这些是 docker 二进制文件

上的标签
system_u:object_r:container_runtime_exec_t:s0

问题似乎与 SELinux 标签有关。 如果您不想禁用 SELinux,则必须重新标记您的系统。

检查

的输出
ls -Z1 /usr/bin/docker*

他们应该是

system_u:object_r:docker_exec_t:s0

看来你得到的和Bug 1405131 - Docker refuses to start containers (SELINUX)一样。