Take note that you can use this approach to move the /var/lib/docker
directory to another disk or partition.
Just make sure you create the destination directory in this new disk or partition.
- Stop the server:
sudo systemctl stop docker
- Create/edit the configuration at /etc/docker/daemon.json, for example:
{