/ var / lib / docker中没有overlayfs驱动程序

我的版本是Ubuntu 16.04和内核版本是4.4.0通用

我想使用overlayfs驱动程序,所以我首先成功地安装了docker: http ://ciplogic.com/index.php/blog/107-docker-with-overlayfs-on-ubuntu-14-04

但是在安装docker之后,我在/ var / lib / docker /目录下找不到overlay目录。那里只有aufs和其他目录。

这是我的docker版本:

客户:

版本:1.12.1

API版本:1.24

Go版本:go1.6.3

Git commit:23cf638

build于:8月18日星期四05:33:38 2016

OS / Arch:linux / amd64

服务器:

版本:1.12.1

API版本:1.24

Go版本:go1.6.3

Git commit:23cf638

build于:8月18日星期四05:33:38 2016

OS / Arch:linux / amd64

有没有人知道任何想法在Docker中设置覆盖驱动程序? 非常感谢

afaik有必要明确地告诉docker-daemon它应该使用哪个存储驱动程序。 这是必要的开关

--storage-driver=overlay 

为了使用systemd,您需要将/lib/systemd/system/docker.service复制到/etc/systemd/system/docker.service并更改ExecStart -param:

 root@pc / # cat /etc/systemd/system/docker.service [Unit] Description=Docker Application Container Engine Documentation=https://docs.docker.com After=network.target docker.socket Requires=docker.socket [Service] Type=notify # the default is not to use systemd for cgroups because the delegate issues still # exists and systemd currently does not support the cgroup feature set required # for containers run by docker ExecStart=/usr/bin/dockerd --storage-driver=overlay -H fd:// ExecReload=/bin/kill -s HUP $MAINPID # Having non-zero Limit*s causes performance problems due to accounting overhead # in the kernel. We recommend using cgroups to do container-local accounting. LimitNOFILE=infinity LimitNPROC=infinity LimitCORE=infinity # Uncomment TasksMax if your systemd version supports it. # Only systemd 226 and above support this version. #TasksMax=infinity TimeoutStartSec=0 # set delegate yes so that systemd does not reset the cgroups of docker containers Delegate=yes # kill only the docker process, not all processes in the cgroup KillMode=process [Install] WantedBy=multi-user.target 

问候