Skip to end of metadata
Go to start of metadata
Autor
Logo


Status

STABLE

Version2.0.1
Min. LB Version

LB 1.XLB 2.0

Download

https://github.com/michaelmiklis/loxberry-plugin-docker/archive/2.0.1.zip

ZweckDocker auf dem LoxBerry und Portainer.io als WebUI zur Verwaltung als LoxBerry Plugin
LanguagesEN, DE
Diskussionhttps://www.loxforum.com/forum/projektforen/loxberry/plugins/165754-plugin-docker-und-portainer-io
 Version History...
  • 2019-12-31 Release 2.0.1 - Support for Loxberry 2.0.0.4 and above, Portainer 1.23.0
  • 2018-11-16 Release 1.1.0 - Larger iFrame size, Portainer 1.9.1
  • 2018-08-27 Release 1.0.0 - Initial release of version 1.0.0
  • 2019-12-22 Release 1.2.0 - Updated to Portainer 1.23.0

Inhalt


This Plugin installs the Docker container engine and also the portainer.io. container for graphical management.

After installation the webinterface is http://IP_LOXBERRY:9000

Docker Plugin

This Plugin will integrate Docker into the LoxBerry WebUI and enables you to use Docker like any other Plugin on your LoxBerry.

Troubleshooting and feedback

Please understand, that I cannot provide you any help with the use of the Docker engine itself. Containers are a really great technology and there are lots of guidance, videos, etc. out there.

This plugin will be improved over time and feedback is appreciated. Therefore I created a thread in the LoxForum:

https://www.loxforum.com/forum/projektforen/loxberry/plugins/165754-plugin-docker-und-portainer-io

Known-Issues

None


Getting started (chapter in german)

  • Was ist überhaupt Docker und wozu ist es gut?






10 Comments

  1. Hi,

    Portainer is almost at v 1.21. Is the usage as iFrame still not possible?

    1. Updated the Plugin to Portainer 1.23 - iFrame now works again

  2. Hi!
    Bekomme bei der Installation folgende Fehlermeldungen:

    Err:1 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian buster/main armhf apt-transport-https all 1.8.2.1
    Could not connect to ftp.halifax.rwth-aachen.de:80 (137.226.34.46). - connect (113: No route to host) Cannot initiate the connection to ftp.halifax.rwth-aachen.de:80 (2a00:8a60:e012:a00::21). - connect (101: Network is unreachable)
    Err:2 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian buster/main armhf ca-certificates all 20190110
    Cannot initiate the connection to ftp.halifax.rwth-aachen.de:80 (2a00:8a60:e012:a00::21). - connect (101: Network is unreachable)
    Err:3 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian buster/main armhf libpackagekit-glib2-18 armhf 1.1.12-5
    Cannot initiate the connection to ftp.halifax.rwth-aachen.de:80 (2a00:8a60:e012:a00::21). - connect (101: Network is unreachable)
    Err:4 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian buster/main armhf gir1.2-packagekitglib-1.0 armhf 1.1.12-5
    Cannot initiate the connection to ftp.halifax.rwth-aachen.de:80 (2a00:8a60:e012:a00::21). - connect (101: Network is unreachable)
    Err:5 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian buster/main armhf gnupg2 all 2.2.12-1+rpi1+deb10u1
    Cannot initiate the connection to ftp.halifax.rwth-aachen.de:80 (2a00:8a60:e012:a00::21). - connect (101: Network is unreachable)
    Err:6 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian buster/main armhf python3-pycurl armhf 7.43.0.2-0.1
    Cannot initiate the connection to ftp.halifax.rwth-aachen.de:80 (2a00:8a60:e012:a00::21). - connect (101: Network is unreachable)
    Err:7 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian buster/main armhf python3-software-properties all 0.96.20.2-2
    Cannot initiate the connection to ftp.halifax.rwth-aachen.de:80 (2a00:8a60:e012:a00::21). - connect (101: Network is unreachable)
    Err:8 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian buster/main armhf software-properties-common all 0.96.20.2-2
    Cannot initiate the connection to ftp.halifax.rwth-aachen.de:80 (2a00:8a60:e012:a00::21). - connect (101: Network is unreachable)
    E: Failed to fetch http://ftp.halifax.rwth-aachen.de/raspbian/raspbian/pool/main/a/apt/apt-transport-https_1.8.2.1_all.deb Could not connect to ftp.halifax.rwth-aachen.de:80 (137.226.34.46). - connect (113: No route to host) Cannot initiate the connection to ftp.halifax.rwth-aachen.de:80 (2a00:8a60:e012:a00::21). - connect (101: Network is unreachable)
    E: Failed to fetch http://ftp.halifax.rwth-aachen.de/raspbian/raspbian/pool/main/c/ca-certificates/ca-certificates_20190110_all.deb Cannot initiate the connection to ftp.halifax.rwth-aachen.de:80 (2a00:8a60:e012:a00::21). - connect (101: Network is unreachable)
    E: Failed to fetch http://ftp.halifax.rwth-aachen.de/raspbian/raspbian/pool/main/p/packagekit/libpackagekit-glib2-18_1.1.12-5_armhf.deb Cannot initiate the connection to ftp.halifax.rwth-aachen.de:80 (2a00:8a60:e012:a00::21). - connect (101: Network is unreachable)
    E: Failed to fetch http://ftp.halifax.rwth-aachen.de/raspbian/raspbian/pool/main/p/packagekit/gir1.2-packagekitglib-1.0_1.1.12-5_armhf.deb Cannot initiate the connection to ftp.halifax.rwth-aachen.de:80 (2a00:8a60:e012:a00::21). - connect (101: Network is unreachable)
    E: Failed to fetch http://ftp.halifax.rwth-aachen.de/raspbian/raspbian/pool/main/g/gnupg2/gnupg2_2.2.12-1+rpi1+deb10u1_all.deb Cannot initiate the connection to ftp.halifax.rwth-aachen.de:80 (2a00:8a60:e012:a00::21). - connect (101: Network is unreachable)
    E: Failed to fetch http://ftp.halifax.rwth-aachen.de/raspbian/raspbian/pool/main/p/pycurl/python3-pycurl_7.43.0.2-0.1_armhf.deb Cannot initiate the connection to ftp.halifax.rwth-aachen.de:80 (2a00:8a60:e012:a00::21). - connect (101: Network is unreachable)
    E: Failed to fetch http://ftp.halifax.rwth-aachen.de/raspbian/raspbian/pool/main/s/software-properties/python3-software-properties_0.96.20.2-2_all.deb Cannot initiate the connection to ftp.halifax.rwth-aachen.de:80 (2a00:8a60:e012:a00::21). - connect (101: Network is unreachable)
    E: Failed to fetch http://ftp.halifax.rwth-aachen.de/raspbian/raspbian/pool/main/s/software-properties/software-properties-common_0.96.20.2-2_all.deb Cannot initiate the connection to ftp.halifax.rwth-aachen.de:80 (2a00:8a60:e012:a00::21). - connect (101: Network is unreachable)
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

    25.05.2020 18:58:16 WARNING: Einige Pakete konnten nicht installiert werden.


    Docker wird dann zwar installiert, ist aber über ip:9000 nicht erreichbar...

    Könnte mir bitte jemand helfen?

    LG

    1. Entweder dein LoxBerry kommt nicht ins Internet, oder der Debian-Server war down. Probier die Installation nochmal.

      1. DAnke, dann war wohl der Server down. Heute funktionierts...

  3. Wenn's wer brauchen sollte, ich habe den Docker Portainer mit folgenden Befehlen aktualisiert.


    sudo docker stop $(sudo docker ps -a --filter name=portainer -q);
    sudo docker rm $(sudo docker ps -a --filter name=portainer -q);
    sudo docker pull portainer/portainer-ce:latest;
    sudo docker run --volume=/var/run/docker.sock:/var/run/docker.sock --volume=/opt/portainer:/data -p=9000:9000 --name="portainer" --restart="unless-stopped" --detach=true portainer/portainer-ce:latest;
    sudo docker image ls;
    sudo docker image rm 8971979f760c;

  4. Hi, I tried to install Docker plugin and after instalation (seems to be sucessful - final message in log is OK: All Plugin files were installed successfully and system was cleaned up.).

    When trying to open http://<loxberryURL>/admin/plugins/docker/ i get message <loxberryIP> refused to connect. 

    What can be wrong?


    In instalation logfile there is only one ERROR

    Log Viewer - /system/plugininstall/docker.log
    12.11.2020 15:54:07 ERROR: APT database could not be refreshed. 

    which is after

    Log Viewer - /system/plugininstall/docker.log
    12.11.2020 15:53:14 OK: File ownership set successfully.
    12.11.2020 15:53:14 INFO: Refreshing APT database.
    12.11.2020 15:53:14 INFO: Command: /usr/bin/dpkg --configure -a
    12.11.2020 15:53:17 INFO: Command: APT_LISTCHANGES_FRONTEND=none DEBIAN_FRONTEND=noninteractive /usr/bin/apt-get -y -q --allow-unauthenticated --fix-broken --reinstall --allow-downgrades --allow-remove-essential --allow-change-held-packages --purge autoremove
    Reading package lists...
    Building dependency tree...
    Reading state information...
    0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
    12.11.2020 15:53:37 INFO: Command: APT_LISTCHANGES_FRONTEND=none DEBIAN_FRONTEND=noninteractive /usr/bin/apt-get -q -y --allow-unauthenticated --allow-downgrades --allow-remove-essential --allow-change-held-packages update
    Hit:1 http://ftp.agdsn.de/pub/mirrors/raspbian/raspbian buster InRelease
    Hit:2 http://ftp.gwdg.de/pub/linux/debian/raspbian/raspbian buster InRelease
    Get:3 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian buster InRelease [15.0 kB]
    Hit:4 https://deb.nodesource.com/node_12.x buster InRelease
    Hit:5 https://dl.yarnpkg.com/debian stable InRelease
    Get:6 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian buster/main armhf Packages [13.0 MB]
    Err:6 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian buster/main armhf Packages
    File has unexpected size (13004072 != 13004880). Mirror sync in progress? [IP: 137.226.34.46 80]
    Hashes of expected file:
    - Filesize:13004880 [weak]
    - SHA256:228e8e36583797e2467d531d4135f83234fc8a785a29a1ac91991f1558fd3b42
    - SHA1:60c335501bbd82bec1a64fdcc9a960bd938c2b42 [weak]
    - MD5Sum:339070c0fd31150430c29968d714dd15 [weak]
    Release file created at: Thu, 12 Nov 2020 10:53:59 +0000
    Fetched 15.0 kB in 3s (4886 B/s)
    Reading package lists...
    W: Target Packages (main/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:6
    W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:6
    W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:6
    W: Target Packages (contrib/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:6
    W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:6
    W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:6
    W: Target Packages (non-free/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:6
    W: Target Packages (non-free/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:6
    W: Target Translations (non-free/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:6
    W: Target Packages (rpi/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:6
    W: Target Packages (rpi/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:6
    W: Target Translations (rpi/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:6
    W: Skipping acquire of configured file 'rpideb/binary-armhf/Packages' as repository 'http://ftp.agdsn.de/pub/mirrors/raspbian/raspbian buster InRelease' doesn't have the component 'rpideb' (component misspelt in sources.list?)
    W: Skipping acquire of configured file 'rpideb/i18n/Translation-en' as repository 'http://ftp.agdsn.de/pub/mirrors/raspbian/raspbian buster InRelease' doesn't have the component 'rpideb' (component misspelt in sources.list?)
    W: Skipping acquire of configured file 'http://ftp.gwdg.de/pub/linux/debian/raspbian/raspbian//binary-armhf/Packages' as repository 'http://ftp.agdsn.de/pub/mirrors/raspbian/raspbian buster InRelease' doesn't have the component 'http://ftp.gwdg.de/pub/linux/debian/raspbian/raspbian/' (component misspelt in sources.list?)
    W: Skipping acquire of configured file 'http://ftp.gwdg.de/pub/linux/debian/raspbian/raspbian//i18n/Translation-en' as repository 'http://ftp.agdsn.de/pub/mirrors/raspbian/raspbian buster InRelease' doesn't have the component 'http://ftp.gwdg.de/pub/linux/debian/raspbian/raspbian/' (component misspelt in sources.list?)
    W: Skipping acquire of configured file 'buster/binary-armhf/Packages' as repository 'http://ftp.agdsn.de/pub/mirrors/raspbian/raspbian buster InRelease' doesn't have the component 'buster' (component misspelt in sources.list?)
    W: Skipping acquire of configured file 'buster/i18n/Translation-en' as repository 'http://ftp.agdsn.de/pub/mirrors/raspbian/raspbian buster InRelease' doesn't have the component 'buster' (component misspelt in sources.list?)
    E: Failed to fetch http://ftp.halifax.rwth-aachen.de/raspbian/raspbian/dists/buster/main/binary-armhf/Packages.xz File has unexpected size (13004072 != 13004880). Mirror sync in progress? [IP: 137.226.34.46 80]
    Hashes of expected file:
    - Filesize:13004880 [weak]
    - SHA256:228e8e36583797e2467d531d4135f83234fc8a785a29a1ac91991f1558fd3b42
    - SHA1:60c335501bbd82bec1a64fdcc9a960bd938c2b42 [weak]
    - MD5Sum:339070c0fd31150430c29968d714dd15 [weak]
    Release file created at: Thu, 12 Nov 2020 10:53:59 +0000
    E: Some index files failed to download. They have been ignored, or old ones used instead.
    W: Target Packages (main/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:6
    W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:6
    W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:6
    W: Target Packages (contrib/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:6
    W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:6
    W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:6
    W: Target Packages (non-free/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:6
    W: Target Packages (non-free/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:6
    W: Target Translations (non-free/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:6
    W: Target Packages (rpi/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:6
    W: Target Packages (rpi/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:6
    W: Target Translations (rpi/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:6
    Use of uninitialized value in concatenation (.) or string at /opt/loxberry/sbin/plugininstall.pl line 1765.
    12.11.2020 15:54:07 ERROR: APT database could not be refreshed.

    Can somenody help?

    1. Hello,

      it seems that something goes wrong during the package download "File has unexpected size (13004072 != 13004880). Mirror sync in progress?" Could you try again and check if your loxberry has internet access? You can also check using SSH and execute "apt-get update" command.


  5. Hi Michael Miklis, when I was installing plugin I did several iterations install/uninstall but without sucess. In meantime I installed another plugin without problem.

    Today (after your post above) I retried uninstall/install Your Docker plugin and today NO PROBLEM.

    Thanks anyway for hint for solution.

  6. It seems that after having updated to 2.2.0.4 docker installation isn't working anymore. It already made trouble while updating to LB 2.2.0.4 and afterwards I'm not able anymore to apt-get updates from the repository. In Docker repo sid or bullseye are also not possible to be found.

    Also my containers are gone now, but it is also not possible to even get docker installed to work, anymore. (sad)

    Any idea? Has there something changed in the kernel that is too up to date for docker?