Docker and Portainer not working after reinstall

  • Evening all,
    I'm trying to get docker and portainer running on a new install of OMV5 on RPi4.
    I had everything working and created shared folders for containers etc but then changed the docker storage path and when docker tried to reinstall the status shows installed not running, similar for portainer.
    Not quite sure what happened and why it didn't just reinstall but I may have rebooted or refreshed while it was working in the background.
    Hopefully fixable through the GUI with your help.
    Any tips or guides for best practice in setting up docker through OMV would also be appreciated - folder structure,config files etc.
    picture attached with logs.
    loving the new omv5 btw
    Thanks
    franco

  • You can not use a shared folder for the Docker storage path. Use the actual fully qualified path instead.

    --
    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.

  • I'm using an SD card (32Gb) would this not max out quickly?
    If I revert back to original path will docker and potainer rebuild.
    On that if I remove the sharedfolders path will the original path repopulate.
    Thank-you

  • I'm using an SD card (32Gb) would this not max out quickly?
    If I revert back to original path will docker and potainer rebuild.
    On that if I remove the sharedfolders path will the original path repopulate.
    Thank-you

    You do not want to have the Docker storage path on your OMV system disk (/var/lib/docker) for the reason you stated. Put it on one of your data disks instead.


    You can use the appropriate steps in the following procedure to move the data.


    https://blog.adriel.co.nz/2018…rectory-in-debian-jessie/

    --
    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.

  • Thanks,


    Still cant get docker to run.
    I'm being a dork - I know
    Would these images help suggest anything.
    Used >>sudo systemctl status docker to check if docker was up.


    Still a novice with omv - thanks for your patience

  • You are still showing your Docker Storage as:


    sharedfolders/docker


    You can not use a sharedfolders path here. Use the actual real path to the directory.

    --
    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.

  • Output from stopping and starting docker if it helps...and requested command
    Might have something to do with running omv on raspian lite / not sure how to get root for omv other than sudo via raspiand?
    Installed docker as root and looks to have completed (last image)
    Suppose I could start docker via cli but will wait instruction in case its best run via omv to pick-up storage locations etc.
    Thx

  • Output from stopping and starting docker if it helps.

    Don't worry about trying to start and stop until the package is installed. And please cut&paste instead of screenshots.


    That command needed to be run as root. So, either login as root or use sudo. sudo apt-get install docker-ce

    omv 5.5.5 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.3.5
    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!

  • You can not install packages as a regular user. Either become the root user or use sudo.

    --
    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.

  • I also have this identical issue randomly.


    Noticed my hostname changed on it's own, Docker would not show as installed, changed hostname back to the original - updated OMV (version update released last night?) - restarted, Docker now showing installed however portainer is gone...

  • Nevermind, I fixed it by changing json


    "as root"


    nano /etc/docker/daemon.json


    systemctl stop docker



    Code
    {
    "data-root": "/srv/dev-disk-by-label-GDATA/appdata/docker2"
    }

    systemctl start docker



    Thanks Guys!

  • Output from dpkg -l


    rH docker-ce 5:19.03.5~3-0~debian-buster armhf Docker: the open-source application container engine
    pi docker-ce-cli 5:19.03.5~3-0~debian-buster armhf Docker CLI: the open-source application container engine
    pi@omv:~ $
    Start-up script says "Failed to start LSB:"
    Systemctl says:


    pi@omv:~ $ sudo systemctl status docker.service
    * docker.service - LSB: Create lightweight, portable, self-sufficient containers.
    Loaded: loaded (/etc/init.d/docker; generated)
    Active: failed (Result: exit-code) since Wed 2019-12-04 16:56:23 GMT; 9min ago
    Docs: man:systemd-sysv-generator(8)
    Process: 916 ExecStart=/etc/init.d/docker start (code=exited, status=1/FAILURE)


    Dec 04 16:56:23 omv systemd[1]: Starting LSB: Create lightweight, portable, self-sufficient containers....
    Dec 04 16:56:23 omv docker[916]: /usr/bin/dockerd not present or not executable ... failed!
    Dec 04 16:56:23 omv systemd[1]: docker.service: Control process exited, code=exited, status=1/FAILURE
    Dec 04 16:56:23 omv systemd[1]: docker.service: Failed with result 'exit-code'.
    Dec 04 16:56:23 omv systemd[1]: Failed to start LSB: Create lightweight, portable, self-sufficient containers..
    pi@omv:~ $


    Any thoughts?
    thx

Participate now!

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