我在 /var/lib/docker 中没有 overlayfs 驱动程序
I have no overlayfs driver in /var/lib/docker
我的版本是Ubuntu16.04,内核版本是4.4.0 generic
我想使用 overlayfs 驱动程序,所以我首先通过 turorial 安装 docker 成功:http://ciplogic.com/index.php/blog/107-docker-with-overlayfs-on-ubuntu-14-04
但是安装后发现/var/lib/docker/下没有覆盖目录docker.There只有aufs和那里的其他目录。
这是我的 docker 版本:
客户:
版本:1.12.1
API版本:1.24
Go版本:go1.6.3
Git 提交:23cf638
建成:2016 年 8 月 18 日星期四05:33:38
OS/Arch: linux/amd64
服务器:
版本:1.12.1
API版本:1.24
Go版本:go1.6.3
Git 提交:23cf638
建成:2016 年 8 月 18 日星期四05:33:38
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
此致
我的版本是Ubuntu16.04,内核版本是4.4.0 generic
我想使用 overlayfs 驱动程序,所以我首先通过 turorial 安装 docker 成功:http://ciplogic.com/index.php/blog/107-docker-with-overlayfs-on-ubuntu-14-04
但是安装后发现/var/lib/docker/下没有覆盖目录docker.There只有aufs和那里的其他目录。
这是我的 docker 版本:
客户:
版本:1.12.1
API版本:1.24
Go版本:go1.6.3
Git 提交:23cf638
建成:2016 年 8 月 18 日星期四05:33:38
OS/Arch: linux/amd64
服务器:
版本:1.12.1
API版本:1.24
Go版本:go1.6.3
Git 提交:23cf638
建成:2016 年 8 月 18 日星期四05:33:38
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
此致