赞
踩
mkdir /data/docker-data
systemctl stop docker
cp -r /var/lib/docker/* /data/docker-data/
vi /etc/docker/daemon.json
#添加data-root参数
{
"data-root":"/data/docker-data"
}
systemctl daemon-reload && systemctl restart docker
docker info
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。