Docker Community Forums

Share and learn in the Docker community.

Expand space under /var/lib/docker/overlay2/


the used space under /var/lib/docker/overlay2/… is 100%, like You can see in the image atached.

How can I add space to every single /var/lib/docker/overlay2/…??? I have an available disk with 500GB. The OS of the host is Debian.

For the /dev/mapper on the top I will add space with LVM commands but for /var/lib/docker/overlay2/… I don’t know what to do.

Thank you!


You either need to grow your lvm volume…
OR mount another disk in /var/lib/docker (this requires a temporary mount of the new drive in another location, move of the old data to the temporary mount after docker service is stoppen, then final mount in /var/lib/docker, then start the docker service)
OR mount another disk wherever you like and change the “data-root” in /etc/docker/daemon.json (again stop the docker service, move data, start the docker service).

The easiest one is to grow your lvm… I am quite sure google will give you plent of results for “lvm grow”