Docker and Portainer not working after reinstall

    • OMV 5.x (beta)

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • 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
      Images
      • docker 019-12-03 194536.png

        76.64 kB, 1,317×626, viewed 48 times
    • franc0nelis wrote:

      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.

      blog.adriel.co.nz/2018/01/25/c…rectory-in-debian-jessie/
      --
      Google is your friend and Bob's your uncle!

      RAID - Its ability to disappoint is inversely proportional to the user's understanding of it.

      ASRock Rack C2550D4I - 16GB CC - Silverstone DS380
    • 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
      Images
      • cli 2019-12-04 112229.png

        43.84 kB, 1,147×497, viewed 10 times
      • omv 2019-12-04 112229.png

        104.87 kB, 1,222×585, viewed 13 times
      • logs 2019-12-04 112737.png

        138.23 kB, 1,277×703, viewed 9 times
    • franc0nelis wrote:

      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!

      RAID - Its ability to disappoint is inversely proportional to the user's understanding of it.

      ASRock Rack C2550D4I - 16GB CC - Silverstone DS380
    • franc0nelis wrote:

      Please see attached, many thanks..
      the docker-ce package isn't fully installed and is causing your problem. What is the output of:

      apt-get install docker-ce
      omv 5.1.2 usul | 64 bit | 5.3 proxmox kernel | omvextrasorg 5.1.9
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • 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
      Images
      • doc 2019-12-04 134026.png

        20.26 kB, 913×242, viewed 11 times
      • apt 2019-12-04 134414.png

        13.49 kB, 898×125, viewed 9 times
      • docker 2019-12-04 134414.png

        39.07 kB, 1,077×347, viewed 6 times

      The post was edited 3 times, last by franc0nelis: installed docker as root ().

    • franc0nelis wrote:

      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.1.2 usul | 64 bit | 5.3 proxmox kernel | omvextrasorg 5.1.9
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • 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...
      Images
      • Capture1.PNG

        40.06 kB, 644×648, viewed 13 times
      • Capture2.PNG

        21.5 kB, 671×368, viewed 10 times
    • franc0nelis wrote:

      Docker looks to be installed
      dpkg -l | grep docker-ce has ii in the first column? If so, then it is installed properly and you can try to start it.
      omv 5.1.2 usul | 64 bit | 5.3 proxmox kernel | omvextrasorg 5.1.9
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • 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
      Images
      • grep 2019-12-04 134414.png

        84.27 kB, 1,193×707, viewed 6 times

      The post was edited 3 times, last by franc0nelis: image ().

    • franc0nelis wrote:

      rH docker-ce
      rh does not equal ii. So, it isn't installed properly. Without the output of apt-get install docker-ce, I can't help.
      omv 5.1.2 usul | 64 bit | 5.3 proxmox kernel | omvextrasorg 5.1.9
      omv-extras.org plugins source code and issue tracker - github

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