Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error starting container on RPI Zero #67

Open
Shaun-Harrison opened this issue Jan 29, 2020 · 6 comments
Open

Error starting container on RPI Zero #67

Shaun-Harrison opened this issue Jan 29, 2020 · 6 comments
Labels
help wanted Extra attention is needed

Comments

@Shaun-Harrison
Copy link

When using docker-compose to bring up the container I get the following error

Starting ha_dockermon ... error

ERROR: for ha_dockermon Cannot start service docker_mon: failed to create endpoint ha_dockermon on network bridge: failed to add the host (vetha02c8e5) <=> sandbox (veth8a752e8) pair interfaces: operation not supported

ERROR: for docker_mon Cannot start service docker_mon: failed to create endpoint ha_dockermon on network bridge: failed to add the host (vetha02c8e5) <=> sandbox (veth8a752e8) pair interfaces: operation not supported
ERROR: Encountered errors while bringing up the project.

Here is my docker-compose.yml

docker_mon:
    image: philhawthorne/ha-dockermon:arm
    container_name: ha_dockermon
    restart: always
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    ports:
      - 8126:8126

This config works fine on RPI4 & RPI3

@philhawthorne
Copy link
Owner

Thanks Shaun,

I'll see if I can get Docker running on one of my Zero's and test it out.

In the mean time, do you mind changing your docker compose to this to test?

docker_mon:
    image: philhawthorne/ha-dockermon:edge
    container_name: ha_dockermon
    restart: always
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    ports:
      - 8126:8126

The edge tag has been updated to support docker manifests, so it should pull in the right version for your Pi. There's also a new base image jump which may solve the issue.

@Shaun-Harrison
Copy link
Author

Hi!

I googled further about the error, and seen that people have cleared the error with

 docker network prune 

I tried this out and it did work, as the container now built, but it was stuck in a restart loop, with nothing in the log

Added your suggested code in but sadly after rebuilding the image and container its still giving me the restart loop

@Shaun-Harrison
Copy link
Author

Any updates on this please?

@philhawthorne
Copy link
Owner

Hi @Shaun-Harrison

I installed Docker on my RpiZero over the weekend, and tried to run it. Unfortunately although the docker image is there, when running the container HA-Dockermon doesn't event start. My assumption here is that there is an issue running on the Zero completely, and it most likely won't be supported for the time being 😢

I'll leave this open as "help wanted" if someone wants to take a stab and get it working, but for now running on a Zero won't work.

@philhawthorne philhawthorne added the help wanted Extra attention is needed label Mar 30, 2020
@Shaun-Harrison
Copy link
Author

Hello @philhawthorne

Thank you for testing this out, hopefully someone will be able to get it working!

@solvaholic
Copy link

fyi, fwiw: Testing today with Raspberry Pi OS on a Pi Zero W, I got exit code 139 with :edge, :edge-arm, and :arm.

$ docker-compose up
Creating ha_dockermon ... done
Attaching to ha_dockermon
ha_dockermon exited with code 139
More details...

Ran update in raspbi-config. Then did:

sudo apt update
sudo apt install docker.io docker-compose -y

sudo usermod -a -G docker pi
sudo reboot now

Set up the docker-compose file:

cat > docker-compose.yml <<EOM
docker_mon:
    image: philhawthorne/ha-dockermon:edge-arm
    container_name: ha_dockermon
    restart: always
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    ports:
      - 8126:8126
EOM

docker pull philhawthorne/ha-dockermon:edge-arm

And ran it:

$ docker-compose up
Creating ha_dockermon ... done
Attaching to ha_dockermon
ha_dockermon exited with code 139

$ docker ps -a
CONTAINER ID        IMAGE                                 COMMAND                  CREATED             STATUS                           PORTS               NAMES
a5a26be9afd8        philhawthorne/ha-dockermon:edge-arm   "/usr/bin/entry.sh /…"   56 seconds ago      Restarting (139) 8 seconds ago                       ha_dockermon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants