[GH-ISSUE #497] Home Assistant Add-on #918

Closed
opened 2026-08-05 00:40:26 -04:00 by saavagebueno · 3 comments
Owner

Originally created by @dannymate on GitHub (Oct 7, 2022).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/497

Trying to use one of the community base images (I've tried alpine, debian, ubuntu) along with the install from binary option to create an add-on for home assistant for the client.

However when I get to the point of trying to start the service it gives me 'exit status 1':
netbird service install
netbird service start

I'm wondering if there's any dependencies I need to get it running of if there's some special configuration I've got to do to get NetBird running inside a docker container.

Originally created by @dannymate on GitHub (Oct 7, 2022). Original GitHub issue: https://github.com/netbirdio/netbird/issues/497 Trying to use one of the community base images (I've tried alpine, debian, ubuntu) along with the install from binary option to create an add-on for home assistant for the client. However when I get to the point of trying to start the service it gives me 'exit status 1': netbird service install netbird service start I'm wondering if there's any dependencies I need to get it running of if there's some special configuration I've got to do to get NetBird running inside a docker container.
Author
Owner

@mlsmaycon commented on GitHub (Oct 8, 2022):

Hello @dannymate sorry to hear that, just so I understand correctly, you are getting the error after installing the client on docker and running the service install and start commands?

If so, we have a official image with a distroless that you can reference netbirdio/netbird:latest image. If you want to build a custom image, you can see a Dockerfile reference at https://github.com/netbirdio/netbird/blob/main/client/Dockerfile mainly the log file should point to console:

ENV NB_LOG_FILE=console
# or ENV WT_LOG_FILE=console

and the entrypoint:

ENTRYPOINT [ "/go/bin/netbird","up"]
<!-- gh-comment-id:1272385939 --> @mlsmaycon commented on GitHub (Oct 8, 2022): Hello @dannymate sorry to hear that, just so I understand correctly, you are getting the error after installing the client on docker and running the service install and start commands? If so, we have a official image with a distroless that you can reference netbirdio/netbird:latest image. If you want to build a custom image, you can see a Dockerfile reference at https://github.com/netbirdio/netbird/blob/main/client/Dockerfile mainly the log file should point to console: ``` ENV NB_LOG_FILE=console # or ENV WT_LOG_FILE=console ``` and the entrypoint: ``` ENTRYPOINT [ "/go/bin/netbird","up"] ```
Author
Owner

@dannymate commented on GitHub (Oct 8, 2022):

Yes specifically the error occurs after running the netbird service start command.

I'll take a look again with this other image and see what I can do.

<!-- gh-comment-id:1272387605 --> @dannymate commented on GitHub (Oct 8, 2022): Yes specifically the error occurs after running the netbird service start command. I'll take a look again with this other image and see what I can do.
Author
Owner

@dannymate commented on GitHub (Oct 9, 2022):

Alright I've managed to get it working. I'm not 100% sure what fixed it but I think because I was following the https://netbird.io/docs/getting-started/installation#binary-install guide and I was putting netbird in /usr/bin/netbird. After looking at the dockerfile you sent I switched the path to /go/bin/netbird instead and it seems to like that.

I've got the add-on working anyway can connect to HASSIO through netbird. I'm going to polish it up and see if I can submit it to the community app store.

<!-- gh-comment-id:1272548538 --> @dannymate commented on GitHub (Oct 9, 2022): Alright I've managed to get it working. I'm not 100% sure what fixed it but I think because I was following the https://netbird.io/docs/getting-started/installation#binary-install guide and I was putting netbird in /usr/bin/netbird. After looking at the dockerfile you sent I switched the path to /go/bin/netbird instead and it seems to like that. I've got the add-on working anyway can connect to HASSIO through netbird. I'm going to polish it up and see if I can submit it to the community app store.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#918