2017-01-30 143 views
1

我更新了Fedora服務器23到Fedora服務器25.一切工作正常執行碼頭工人。這很糟糕,因爲我現在有大約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". 

編輯:

這些都是泊塢窗二進制

system_u:object_r:container_runtime_exec_t:s0 
+0

如果啓用,請嘗試禁用SELinux。 – gile

+0

Thnx。它再次運作。但是我對禁用SELinux並不滿意。在我的筆記本電腦上,它啓用了selinux – minzchickenflavor

回答

2

的問題似乎與SELinux的標籤的標籤。 如果您不想禁用SELinux,則必須重新標記系統。

檢查的

ls -Z1 /usr/bin/docker* 

輸出他們應該

system_u:object_r:docker_exec_t:s0 

看來你比Bug 1405131 - Docker refuses to start containers (SELINUX)相同。

+0

'touch/.autorelabel'還能工作嗎? – minzchickenflavor

+0

因爲那是我已經做了。而SELinux標籤似乎是正確的。我編輯了問題並添加了selinux標籤 – minzchickenflavor