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

[guide] How to run Netbird inside of distrobox #2889

Open
Darin755 opened this issue Nov 13, 2024 · 3 comments
Open

[guide] How to run Netbird inside of distrobox #2889

Darin755 opened this issue Nov 13, 2024 · 3 comments

Comments

@Darin755
Copy link

Darin755 commented Nov 13, 2024

Apologies if this is not a good place for this. I didn't know where else to put it. This is a guide on how to get the Netbird agent working inside Podman based Distrobox containers. I have been trying to do this for a while now and I finally got it working. This has been tested on Fedora 41 Silverblue.

  1. Install Distrobox and Podman
  • I recommend you install them both from your distros official repos
  1. Create the container (root is required)
  • distrobox create netbird --init --image debian:12 -a "--cap-add=NET_ADMIN" --additional-packages systemd --root
  • I am using Debian 12 here but you can use something else if you want
  1. Enter the container
  • distrobox enter --root netbird
  1. Install Netbird and bring it up
  • curl -fsSL https://pkgs.netbird.io/install.sh | sh
  • netbird up
  1. That's it. The container has network privileges so you can use Netbird IPs outside the container.

To stop Netbird run distrobox stop --root netbird. To quickly start it run distrobox enter --root netbird -- exit

Also remember to upgrade the packages in the container from time to time

@mgarces
Copy link

mgarces commented Nov 18, 2024

hey @Darin755 , thank you for your contribution! Do you want to add this documentation to our documentation repo or do you prefer if I pick this up and do it? Let me know if you need some help with that.

@Darin755
Copy link
Author

I don't know how your docs a structured. I can turn this into a guide pretty easily but I'm not sure if it should have its own page or be an addition to another page.

@bprolifcdev
Copy link

This worked perfectly , thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants