# systemstl stop docker.service
# vim /etc/docker/daemon.json
新增以下信息:
{ "data-root": "/opt/docker/data" }
# systemstl start docker.service
docker info
/opt/docker/data