Install docker on a Unipi Patron



  • Hi all,

    I would like to install docker on my Unipi Patron L207 in order to run Home Assitant on directly on the unipi.

    But the installation fails with the following log:

    Created symlink /etc/systemd/system/multi-user.target.wants/docker.service -> /lib/systemd/system/docker.service.
    Created symlink /etc/systemd/system/sockets.target.wants/docker.socket -> /lib/systemd/system/docker.socket.
    Job for docker.service failed because the control process exited with error code.
    See "systemctl status docker.service" and "journalctl -xe" for details.
    invoke-rc.d: initscript docker, action "start" failed.
    * docker.service - Docker Application Container Engine
       Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
       Active: activating (auto-restart) (Result: exit-code) since Fri 2022-02-18 21:06:40 UTC; 20ms ago
         Docs: https://docs.docker.com
      Process: 2744 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
     Main PID: 2744 (code=exited, status=1/FAILURE)
    dpkg: error processing package docker-ce (--configure):
     installed docker-ce package post-installation script subprocess returned error exit status 1
    Processing triggers for systemd (241-7~deb10u8) ...
    Processing triggers for libc-bin (2.28-10) ...
    Errors were encountered while processing:
     docker-ce
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    

    Journalctl shows the following for the docker service.

    Feb 18 21:06:47 L207-sn41 systemd[1]: Starting Docker Application Container Engine...
    Feb 18 21:06:47 L207-sn41 dockerd[2923]: time="2022-02-18T21:06:47.971180315Z" level=info msg="Starting up"
    Feb 18 21:06:47 L207-sn41 dockerd[2923]: time="2022-02-18T21:06:47.979486921Z" level=info msg="parsed scheme: \"unix\"" module=grpc
    Feb 18 21:06:47 L207-sn41 dockerd[2923]: time="2022-02-18T21:06:47.980144054Z" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
    Feb 18 21:06:47 L207-sn41 dockerd[2923]: time="2022-02-18T21:06:47.980566059Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock  <nil> 0 <nil>}] <nil> <nil>}" module=grpc
    Feb 18 21:06:47 L207-sn41 dockerd[2923]: time="2022-02-18T21:06:47.980914439Z" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
    Feb 18 21:06:47 L207-sn41 dockerd[2923]: time="2022-02-18T21:06:47.986957641Z" level=info msg="parsed scheme: \"unix\"" module=grpc
    Feb 18 21:06:47 L207-sn41 dockerd[2923]: time="2022-02-18T21:06:47.987571899Z" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
    Feb 18 21:06:47 L207-sn41 dockerd[2923]: time="2022-02-18T21:06:47.988079030Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock  <nil> 0 <nil>}] <nil> <nil>}" module=grpc
    Feb 18 21:06:47 L207-sn41 dockerd[2923]: time="2022-02-18T21:06:47.988656412Z" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
    Feb 18 21:06:48 L207-sn41 dockerd[2923]: time="2022-02-18T21:06:48.009989934Z" level=warning msg="Your kernel does not support CPU CFS scheduler"
    Feb 18 21:06:48 L207-sn41 dockerd[2923]: time="2022-02-18T21:06:48.010090435Z" level=warning msg="Your kernel does not support CPU realtime scheduler"
    Feb 18 21:06:48 L207-sn41 dockerd[2923]: time="2022-02-18T21:06:48.010120436Z" level=warning msg="Your kernel does not support cgroup blkio weight"
    Feb 18 21:06:48 L207-sn41 dockerd[2923]: time="2022-02-18T21:06:48.010148311Z" level=warning msg="Your kernel does not support cgroup blkio weight_device"
    Feb 18 21:06:48 L207-sn41 dockerd[2923]: time="2022-02-18T21:06:48.010175436Z" level=warning msg="Your kernel does not support cgroup blkio throttle.read_bps_device"
    Feb 18 21:06:48 L207-sn41 dockerd[2923]: time="2022-02-18T21:06:48.010202062Z" level=warning msg="Your kernel does not support cgroup blkio throttle.write_bps_device"
    Feb 18 21:06:48 L207-sn41 dockerd[2923]: time="2022-02-18T21:06:48.010230937Z" level=warning msg="Your kernel does not support cgroup blkio throttle.read_iops_device"
    Feb 18 21:06:48 L207-sn41 dockerd[2923]: time="2022-02-18T21:06:48.010260063Z" level=warning msg="Your kernel does not support cgroup blkio throttle.write_iops_device"
    Feb 18 21:06:48 L207-sn41 dockerd[2923]: time="2022-02-18T21:06:48.010973822Z" level=info msg="Loading containers: start."
    Feb 18 21:06:48 L207-sn41 dockerd[2923]: time="2022-02-18T21:06:48.022897098Z" level=warning msg="Running iptables --wait -t nat -L -n failed with message: `iptables/1.8.2 Failed to initialize nft: Protocol not supported`, error: exit st
    Feb 18 21:06:48 L207-sn41 dockerd[2923]: time="2022-02-18T21:06:48.046247770Z" level=warning msg="Failed to read iptables version: exit status 1"
    Feb 18 21:06:48 L207-sn41 dockerd[2923]: time="2022-02-18T21:06:48.207205194Z" level=info msg="stopping event stream following graceful shutdown" error="<nil>" module=libcontainerd namespace=moby
    Feb 18 21:06:48 L207-sn41 dockerd[2923]: failed to start daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain DOCKER: iptables failed: iptables -t nat -N DOCKER: iptables/1.8.2 Fa
    Feb 18 21:06:48 L207-sn41 dockerd[2923]:  (exit status 1)
    Feb 18 21:06:48 L207-sn41 systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
    Feb 18 21:06:48 L207-sn41 systemd[1]: docker.service: Failed with result 'exit-code'.
    Feb 18 21:06:48 L207-sn41 systemd[1]: Failed to start Docker Application Container Engine.
    Feb 18 21:06:50 L207-sn41 systemd[1]: docker.service: Service RestartSec=2s expired, scheduling restart.
    Feb 18 21:06:50 L207-sn41 systemd[1]: docker.service: Scheduled restart job, restart counter is at 4.
    Feb 18 21:06:50 L207-sn41 systemd[1]: Stopped Docker Application Container Engine.
    

    Does anybody has an idea what I'm doing wrong here? Or is it not possible to run docker on the patron?

    Thanks
    Klaas


  • administrators

    Hi @klaschudi,
    can you please post the exact commands (or tutorial) which you followed to install docker? It is not exactly clear just from the error output. Thank you.

    In general, Docker is able to run on Patron.



  • @Martin-Kudláček Hello Martin, I followed this tutorial and have same results as klaschudi - https://docs.docker.com/engine/install/debian/


Log in to reply