Change Docker folder location before or after install? Best practices please!

  • I've read the docs and it makes sense to offload the images and data writing to another drive from the OS.

    Last time I tried, I changed the docker folder to another shared folder/drive and it seemed to mess-up my install (or at least that was uncanny timing).


    What are the best practices regarding changing this location?

    Off-Grid Home Server Project:

    ROCKPro64 4GB (Rockchip RK3399 Hexa-Core)

    OMV 5.5.11 on Armbian Buster Server

    SD boot | 128GB SSD Docker Storage | 2x 1TB SSD RAID1 Storage

  • New install with no container data at all. I've not installed Docker at all yet.

    I have a dedicated drive with a share created I'd like to have as a target for docker storage. The last time I tried this i think supplied the folder in the wrong format...I used something like 'DockerStuff/' and the install fouled up.


    Off-Grid Home Server Project:

    ROCKPro64 4GB (Rockchip RK3399 Hexa-Core)

    OMV 5.5.11 on Armbian Buster Server

    SD boot | 128GB SSD Docker Storage | 2x 1TB SSD RAID1 Storage

  • Before I installed docker I changed the docker storage path to a folder in one of my mounted drives.


    The folder did not need to be a shared folder.


    The docker install created the folder I specified in the location and the permissions were set.


    I would say set your path first then save the setting then install docker.


    And don't set it to a shared folder. Just set it to a folder in one of your mounted drives and the docker install should create it for you.

  • ok that's great to know.

    I'm a total dummy here, so how did you specify the full name of the folder?

    Off-Grid Home Server Project:

    ROCKPro64 4GB (Rockchip RK3399 Hexa-Core)

    OMV 5.5.11 on Armbian Buster Server

    SD boot | 128GB SSD Docker Storage | 2x 1TB SSD RAID1 Storage

  • New install with no container data at all. I've not installed Docker at all yet.

    I have a dedicated drive with a share created I'd like to have as a target for docker storage. The last time I tried this i think supplied the folder in the wrong format...I used something like 'DockerStuff/' and the install fouled up.


    [attach='17134','none','false'][/attach

    If there is no existing docker data, then just enter the absolute path to the existing directory you have set up for this in the Docker Storage box.

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 5.x on ASRock Rack C2550D4I C0 Stepping - 16GB ECC - Silverstone DS380 + Silverstone DS380 DAS Box.

  • so would my path then be:

    /srv/dev-disk-by-label/LookingGlass/DockerStorage

    /srv/dev/disk/by-label/LookingGlass/DockerStorage


    ?? sorry for the dumb questions.

  • Your paths look different from mine.


    When I ssh into my omv and do ls / I see a directory labeled srv.


    ls /srv then shows me the rest of my mounted drives.


    Wherever your mounted drives show that's the path you would use. According to your webui that is /dev. I have most of my drives mounted the default way (/srv) so I can't assume how your devices are mounted.

  • /dev path is the device path. You don't want to use that. You want to use the /srv path. If you look in shared folders and add the absolute path column, you can see the full path of each shared folder.

    omv 5.5.12 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.4.2
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • Thank you both, this was extremely helpful! Docker all installed. thanks!

    Off-Grid Home Server Project:

    ROCKPro64 4GB (Rockchip RK3399 Hexa-Core)

    OMV 5.5.11 on Armbian Buster Server

    SD boot | 128GB SSD Docker Storage | 2x 1TB SSD RAID1 Storage

  • Hmh, interesting. Never thought about this. I'm running OMV from an NVMe SSD M.2 drive. I have sufficient space on there, but just started wondering about "wear and tear". Would you guys recommend moving the docker folder to the HDD Raid instead? And if so, how would you do that with containers being installed?

  • I have sufficient space on there, but just started wondering about "wear and tear". Would you guys recommend moving the docker folder to the HDD Raid instead? And if so, how would you do that with containers being installed?

    Your nvme life should be plenty long to not worry about. Also, if your config and data volumes for docker are stored on the OS drive, that is a bit tougher to move. If they aren't, you can just move the docker directory and recreate your containers with the same volumes.

    omv 5.5.12 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.4.2
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • Yes, my config and data folders are on the raid already. But OK, I'll leave the docker directory itself on the OS NVME drive then. Thanks for your advice, ryecoaaron.

    m4tt0

    Installation and Setup Videos - Beginning, Intermediate and Advanced

    scroll down a few fids

    Off-Grid Home Server Project:

    ROCKPro64 4GB (Rockchip RK3399 Hexa-Core)

    OMV 5.5.11 on Armbian Buster Server

    SD boot | 128GB SSD Docker Storage | 2x 1TB SSD RAID1 Storage

Participate now!

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