![Ubuntu 14.04.3 上的 Docker 總是收到“[8]系統錯誤:沒有這樣的檔案或目錄”](https://rvso.com/image/1052751/Ubuntu%2014.04.3%20%E4%B8%8A%E7%9A%84%20Docker%20%E7%B8%BD%E6%98%AF%E6%94%B6%E5%88%B0%E2%80%9C%5B8%5D%E7%B3%BB%E7%B5%B1%E9%8C%AF%E8%AA%A4%EF%BC%9A%E6%B2%92%E6%9C%89%E9%80%99%E6%A8%A3%E7%9A%84%E6%AA%94%E6%A1%88%E6%88%96%E7%9B%AE%E9%8C%84%E2%80%9D.png)
三週前我讓 Docker 工作了,但現在除了
no such file or directory
Error response from daemon: Cannot start container 7d3cb483971037da163fd8d220100728f51e055e7d0ae811a70bf2ef32564552: [8] System error: no such file or directory
我要去瘋狂試圖讓它發揮作用。
碼頭工人版本:
Client:
Version: 1.8.2
API version: 1.20
Go version: go1.4.2
Git commit: 0a8c2e3
Built: Wed Oct 7 17:48:28 UTC 2015
OS/Arch: linux/amd64
Server:
Version: 1.8.2
API version: 1.20
Go version: go1.4.2
Git commit: 0a8c2e3
Built: Wed Oct 7 17:48:28 UTC 2015
OS/Arch: linux/amd64
碼頭工人資訊:
Containers: 1
Images: 2
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 4
Dirperm1 Supported: false
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 3.13.0-66-generic
Operating System: Ubuntu 14.04.3 LTS
CPUs: 4
Total Memory: 7.74 GiB
Name: footscray
ID: IWMM:MCLX:3H5C:V4QA:JQA2:TVBM:F3PX:4VC4:45XZ:C6AT:TB75:QQNG
輸出uname -a
:
Linux footscray 3.13.0-66-generic #108-Ubuntu SMP Wed Oct 7 15:20:27 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
我正在運行localhost
。
輸出docker run hello-world
:
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
535020c3e8ad: Pull complete
af340544ed62: Pull complete
Digest: sha256:a68868bfe696c00866942e8f5ca39e3e31b79c1e50feaee4ce5e28df2f051d5c
Status: Downloaded newer image for hello-world:latest
no such file or directory
Error response from daemon: Cannot start container b834de00b11decea01b36d1105352eca423bf708dda4b14016bab8fecd5bff41: [8] System error: no such file or directory
起初我使用了wget
安裝方法docker
,但後來我刪除了所有內容並使用了中描述的方法文件。
我已經安裝app-armour
並做了相應的調整。
答案1
我已經解決了這個問題 - 值得注意的是,我的 docker 和 AppArmor 技能還很初級,所以我不能 100% 確定這裡發生了什麼。
當我第一次應用 AppArmor 解決方案(aa-complain,每次會話)時,它起作用了。然後,我通常會停用該配置文件,以確保重新啟動後的一致性(按照Ubuntu 維基):
sudo ln -s /etc/apparmor.d/docker /etc/apparmour.d/disable/docker
當我刪除 /etc/apparmour.d/disable 中的條目並僅設定 aa-complain 時,docker 再次開始工作。
作為參考,我今天早上設置了一個 Ubuntu 15.04 的虛擬機,並且遇到了完全相同的問題 - 這就是我找到解決方案的方式。