Creating an Independent Partition for Docker

After Docker is installed, the default directory /var/lib/docker stores Docker files, including images and containers. When the storage space of the directory is full, Docker and the host may be unavailable. For this reason, a partition (logical volume) needs to be created to save the Docker files.