docker info | grep "Docker Root Dir"
Docker Root Dir: /var/lib/docker
</code></pre>
mkdir /data
cp -rp /var/lib/docker /data
vi /usr/lib/systemd/system/docker.service
# Service 섹션에 ExecStart= 로 시작하는 줄을 수정한다.
# ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock --data-root=/data
systemctl daemon-reload
systemctl restart docker.service