How to mount the Docker root directory?
To mount the Docker root directory, you need to follow these steps:
- Stop Docker service.
 - Please stop the Docker service using sudo systemctl stop docker.
 - Back up the Docker root directory (default is /var/lib/docker):
 - Move the /var/lib/docker directory to the /var/lib/docker_backup directory using superuser permissions.
 - Create a new Docker root directory:
 - Create a new directory named “root” in the Docker directory.
 - Mounting a new Docker root directory:
 - Grant permission to attach the directory /new/docker/root to /var/lib/docker
 - Edit the /etc/fstab file to ensure that the Docker root directory is mounted during system startup.
 - Append the line ‘/new/docker/root /var/lib/docker none bind 0 0’ to the /etc/fstab file using sudo tee -a command.
 - Start Docker service.
 - Initiate the Docker service using systemctl.
 
Now that you have successfully mounted the Docker root directory, please ensure that the new Docker root directory has enough storage space and proper permissions.