docker storage - can't seem to move it

  • Hi there,


    I can't seem to move the Docker Storage:

    in the plugin GUI, i set the storage, but look at my "df -Th" :


    root@omv-docker-1:/srv/dev-disk-by-uuid-1488e001-ef9d-412c-a977-1572ae70e93a/docker_build/wellartis_dev_homepage_nginx# df -Th

    Filesystem Type Size Used Avail Use% Mounted on

    udev devtmpfs 965M 0 965M 0% /dev

    tmpfs tmpfs 199M 26M 173M 13% /run

    /dev/vda1 ext4 11G 8.8G 1.5G 86% /

    tmpfs tmpfs 992M 0 992M 0% /dev/shm

    tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock

    tmpfs tmpfs 992M 0 992M 0% /sys/fs/cgroup

    tmpfs tmpfs 992M 0 992M 0% /tmp

    /dev/vdb1 ext4 32G 3.2G 29G 11% /srv/dev-disk-by-uuid-1488e001-ef9d-412c-a977-1572ae70e93a

    overlay overlay 11G 8.8G 1.5G 86% / /srv/dev-disk-by-uuid-1488e001-ef9d-412c-a977-1572ae70e93a/docker_images/overlay2/30e89bf76c309e3e940775dab39ddf3a56165f1dee9b4d23b1685d3a8aec9121/merged

    overlay overlay 11G 8.8G 1.5G 86% / /srv/dev-disk-by-uuid-1488e001-ef9d-412c-a977-1572ae70e93a/docker_images/overlay2/21fd678c1cab3d2a3eb34e8c12b7436ef572976bf8646b99d05a317b5b1f1593/merged

    overlay overlay 11G 8.8G 1.5G 86% / /srv/dev-disk-by-uuid-1488e001-ef9d-412c-a977-1572ae70e93a/docker_images/overlay2/0d562e617c95e4d8fa0f92a83d00ef19760aa7b53f6cb2e89ae82b24955321bf/merged

    overlay overlay 11G 8.8G 1.5G 86% / /srv/dev-disk-by-uuid-1488e001-ef9d-412c-a977-1572ae70e93a/docker_images/overlay2/c4ebbba5e718d62045ff1b3b9fee14de69d281b4a92d6ef967e704fa2b1399a7/merged

    overlay overlay 11G 8.8G 1.5G 86% / /srv/dev-disk-by-uuid-1488e001-ef9d-412c-a977-1572ae70e93a/docker_images/overlay2/995663fa7c82f5fcf46e7061b8b153f119e7e3c6fe47604b6bc156f06ced2efe/merged

    overlay overlay 11G 8.8G 1.5G 86% / /srv/dev-disk-by-uuid-1488e001-ef9d-412c-a977-1572ae70e93a/docker_images/overlay2/4726638dae60da616a3fa63b3aa90c7ace635d4430e1cbd4fbb2186f7fd9db05/merged

    overlay overlay 11G 8.8G 1.5G 86% / /srv/dev-disk-by-uuid-1488e001-ef9d-412c-a977-1572ae70e93a/docker_images/overlay2/b405d11259a22f8843cf21c76acc09ac2911fde3eccafaf69ce74b7d2320d174/merged

    overlay overlay 11G 8.8G 1.5G 86% / /srv/dev-disk-by-uuid-1488e001-ef9d-412c-a977-1572ae70e93a/docker_images/overlay2/be2e8543a1aad147d8c6ee8d7ce638a398bc51d506c0fd32dbfeecf0c5fad462/merged

    overlay overlay 11G 8.8G 1.5G 86% / /srv/dev-disk-by-uuid-1488e001-ef9d-412c-a977-1572ae70e93a/docker_images/overlay2/a54ed84c5b4da35f2f1a4cbea1c30ac3a63039cb988bb51bb42d357e72ea145d/merged


    I bolded out the important parts, as You caan see, I have two file systems, one 11G for the root, and one 32G for the docker storage.

    (/srv/dev-disk-by-uuid-1488e001-ef9d-412c-a977-1572ae70e93a)


    My containers have overlay file systems, as by docker. Still the folders of those are

    (srv/dev-disk-by-uuid-1488e001-ef9d-412c-a977-1572ae70e93a/docker_images/overlay2/21fd678c1cab3d2a3eb34e8c12b7436ef572976bf8646b99d05a317b5b1f1593/merged)


    It would seem it is a subdirectory of the docker storage mount. (..... / docker_images/overlay2/...........)


    But still, the space it takes up is not from the 32GB docker storage, but the 11G root volume.

    (overlay overlay 11G 8.8G 1.5G 86% )


    What did I do wrong?


    thx in advance


    CadilLACi

  • Moving the docker root only applies for new stuff, not for old ones.

    Did you change the location after you installed docker and strted containers?


    Try to destroy the existing containers, remove the content of /var/lib/docker and recreate the docker containers.

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!