我刚刚创建了我的第一个docker容器,它运行成功。我现在的问题是我无法访问默认存储它们的文件夹
/var/lib/docker/containers
它不断抛出错误
can't cd to containers
答案 0 :(得分:3)
您需要root才能访问它:
sudo ls /var/lib/docker/containers/
没有root访问权限:
docker@boot2docker:/c/Users/VonC/prog/b2d$ cd /var/lib/docker/containers
-sh: cd: can't cd to /var/lib/docker/containers
所以这会奏效:
docker@boot2docker:/c/Users/VonC/prog/b2d$ sudo su -
Boot2Docker version 1.6.0, build master : a270c71 - Thu Apr 16 19:50:36 UTC 2015
Docker version 1.6.0, build 4749651
root@boot2docker:~# cd /var/lib/docker/containers/
root@boot2docker:/mnt/sda1/var/lib/docker/containers#