我試過:
:~$docker -d
[/var/lib/docker|99d07396] +job initapi()
[/var/lib/docker|99d07396.initapi()] Creating server
mkdir /var/lib/docker/containers: permission denied[/var/lib/docker|99d07396] -job initapi() = ERR (1)
2014/02/01 20:38:13 initapi: mkdir /var/lib/docker/containers: permission denied
尾-f /var/log/kern.log:
Feb 2 21:44:18 neethu-pc kernel: [ 6211.765815] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Feb 2 21:44:18 neethu-pc kernel: [ 6211.765818] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Feb 2 21:44:18 neethu-pc kernel: [ 6211.765822] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Feb 2 21:44:18 neethu-pc kernel: [ 6211.765826] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) Feb 2 21:44:19 neethu-pc kernel: [ 6212.855662] wlan0: authenticate with 00:1e:a6:1c:4b:a0
Feb 2 21:44:19 neethu-pc kernel: [ 6212.863401] wlan0: send auth to 00:1e:a6:1c:4b:a0 (try 1/3)
Feb 2 21:44:19 neethu-pc kernel: [ 6212.865598] wlan0: authenticated
Feb 2 21:44:19 neethu-pc kernel: [ 6212.866094] wlan0: associate with 00:1e:a6:1c:4b:a0 (try 1/3)
Feb 2 21:44:19 neethu-pc kernel: [ 6212.869620] wlan0: RX AssocResp from 00:1e:a6:1c:4b:a0 (capab=0x411 status=0 aid=2)
Feb 2 21:44:19 neethu-pc kernel: [ 6212.869702] wlan0: associated
須藤泊塢窗戶-d:
[/var/lib/docker|99d07396] +job initapi()
[/var/lib/docker|99d07396.initapi()] Creating server
mkdir /var/lib/docker/containers: permission denied[/var/lib/docker|99d07396] -job initapi() = ERR (1) 2014/02/01 20:38:13 initapi: mkdir /var/lib/docker/containers: permission denied
我該如何解決這個問題?
答案1
它看起來與他們最近遇到的 AppArmor 錯誤非常相似:
https://github.com/dotcloud/docker/issues/5082
也許檢查 /var/log/messages 中是否有任何 apparmor 訊息,例如
cat /var/log/messages | grep -i apparmor | tail