Docker Community Forums

Share and learn in the Docker community.

Struggling to get Docker working on Raspberry Pi 3 inside LIbreelec

Hi everyone,

I’m seriously unqualified in almost every aspect of linux and Raspberry Pi command lines.

But I’m trying.

I’ve gotten Docker installed via the repo in Libreelec running on a Raspberry Pi 3B.

So that’s good.

I get this reply when I run docker -H 0.0.0.0:2375 run hello-world

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (arm32v7)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
 https://hub.docker.com/

For more examples and ideas, visit:
 https://docs.docker.com/get-started/

HOWEVER, when I try to install anything from Docker, particularly Transmission, this happens:

docker pull linuxserver/transmission
Using default tag: latest
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

I modified the docker file to include -H 0.0.0.0:2375 as suggested, but nothing I do other than the hello-world command gets me that error.

Running systemctl status docker.service gives me this

● service.system.docker.service - Docker Application Container Engine
   Loaded: loaded (/storage/.kodi/addons/service.system.docker/system.d/service.system.docker.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2018-06-22 11:11:57 UTC; 9 months 6 days ago
     Docs: https://docs.docker.com
 Main PID: 576 (dockerd)
   CGroup: /system.slice/service.system.docker.service
           ├─576 /storage/.kodi/addons/service.system.docker/bin/dockerd -H tcp://0.0.0.0:2375 --exec-opt native.cgroupdriver=systemd --log-driver=journald --group=root 
           └─731 containerd --config /var/run/docker/containerd/containerd.toml --log-level info

Mar 30 08:14:17 LibreELEC 4744f8c3c04e[576]:  $ docker run -it ubuntu bash
Mar 30 08:14:17 LibreELEC 4744f8c3c04e[576]: 
Mar 30 08:14:17 LibreELEC 4744f8c3c04e[576]: Share images, automate workflows, and more with a free Docker ID:
Mar 30 08:14:17 LibreELEC 4744f8c3c04e[576]:  https://hub.docker.com/
Mar 30 08:14:17 LibreELEC 4744f8c3c04e[576]: 
Mar 30 08:14:17 LibreELEC 4744f8c3c04e[576]: For more examples and ideas, visit:
Mar 30 08:14:17 LibreELEC 4744f8c3c04e[576]:  https://docs.docker.com/get-started/
Mar 30 08:14:17 LibreELEC 4744f8c3c04e[576]: 
Mar 30 08:14:18 LibreELEC dockerd[576]: time="2019-03-30T08:14:18.050336476Z" level=info msg="shim reaped" id=4744f8c3c04e60a80b6daf0819827f056dcb1ac0ff2b00324bb507d1ed9101f
Mar 30 08:14:18 LibreELEC dockerd[576]: time="2019-03-30T08:14:18.060062942Z" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/tasks/delete type="*

I am at a total loss as to what to do here, I would love any help.

I’ve seen suggestions of commands such as usermod (which doesn’t exist on Libreelec) and others that just bring me nowhere. Due to specific requirements, I need to boot into libreelec (it’s the only thing that works to display my 3D movie files that I have ripped from my 3D blu rays, Kodi just doesn’t work) so I also need to get transmission working properly within this environment due to that.

Thanks in advance.