docker 命令相关问题

docker 命令相关问题

我试过:
:~$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

sudo 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

我该如何解决这个问题?

答案1

它看起来与他们最近发现的 AppArmor 漏洞非常相似:

https://github.com/dotcloud/docker/issues/5082

也许检查 /var/log/messages 中是否有任何 apparmor 消息,例如

cat /var/log/messages | grep -i apparmor | tail

相关内容