CentOS 7.x docker使用overlay2存储
编辑/etc/docker/daemon.json添加以下内容:{"storage-driver": "overlay2","storage-opts": ["overlay2.override_kernel_check=true"]}安装依赖:yum install yum-plugin-ovl -y否则会报以下错误
·
编辑/etc/docker/daemon.json
添加以下内容:
{
"storage-driver": "overlay2",
"storage-opts": [
"overlay2.override_kernel_check=true"
]
}
安装依赖:
yum install yum-plugin-ovl -y
否则会报以下错误:
May 05 18:20:45 node1 dockerd[49605]: Error starting daemon: error initializing graphdriver: /var/lib/docker contains several valid graphdrivers: overlay2, overlay; Please cleanup or explicitly choose storage driver (-s )
最后重启docker即可
systemctl restart docker
更多推荐
已为社区贡献2条内容
所有评论(0)