[英]Docker root directory issues
When I run a docker image of debian, the root folder seems be a bit out of place. 当我运行debian的docker映像时,根文件夹似乎有点不合适。 For eg : when the docker containers root folder seem to be at some place like this :
例如:当docker容器的根文件夹似乎位于这样的某个位置时:
/var/lib/docker/aufs/mnt/f5656c3118921437130c22785982f09c2695e23ade334809091b6dc5918d6298 / var / lib / docker / aufs / mnt / f5656c3118921437130c22785982f09c2695e23ade334809091b6dc5918d6298
when I login into the docker container, all my root directory is at /var/lib/docker/aufs/mnt/f5656c3118921437130c22785982f09c2695e23ade334809091b6dc5918d6298
当我登录到Docker容器时,我的所有根目录都位于
/var/lib/docker/aufs/mnt/f5656c3118921437130c22785982f09c2695e23ade334809091b6dc5918d6298
If I do a "cd /" then it goes to the hosts / directory , directly from the container. 如果我执行“ cd /”,那么它将直接从容器转到hosts /目录。 I have not done any mount, it just simple run of a debian image.
我没有做任何挂载,只是简单地运行了一个debian映像。
docker info : 码头工人信息:
docker info
Containers: 1
Running: 1
Paused: 0
Stopped: 0
Images: 1
Server Version: 1.10.0
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 10
Dirperm1 Supported: false
Execution Driver: native-0.2
Logging Driver: json-file
Plugins:
Volume: local
Network: bridge null host
Kernel Version: 3.2.0-4-amd64
Operating System: Debian GNU/Linux 7 (wheezy)
OSType: linux
Architecture: x86_64
CPUs: 18
Total Memory: 35.43 GiB
Name: <hostname here>
ID: J6MI:XV6G:77NB:UNBK:GZC5:RZIA:DC2B:KZDZ:TEQQ:25KQ:AFSE:KACG
WARNING: No memory limit support
WARNING: No swap limit support
WARNING: No oom kill disable support
WARNING: No cpu cfs quota support
WARNING: No cpu cfs period support
why is this happening. 为什么会这样。 On my mac laptop if I run this image, it correctly mounts the root to / on the container.
在我的Mac笔记本电脑上,如果我运行此映像,它会将根目录正确地安装到容器上的/。 On a debian VM when I run this - it gives me the above behaviour.
在运行此程序的debian VM上-它具有上述行为。 Is this expected?
这是预期的吗? How do I change the behaviour ?
我该如何改变行为?
Your kernel version 3.2 in your Debian host system is too old. Debian主机系统中的内核版本3.2太旧。 Docker requires a kernel version of at least 3.10 .
Docker 要求内核版本至少为3.10 。 There's also a respective bug report in the Debian bugtracker.
Debian Bugtracker中也有相应的错误报告 。
For Debian Wheezy, you can install the Jessie kernel (should be 3.16-something) from the backports repository (see this answer from the Unix&Linux site for more information). 对于Debian Wheezy,您可以从backports存储库安装Jessie内核(应该是3.16),(有关更多信息,请参见Unix&Linux站点上的此答案 )。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.