-
-
Notifications
You must be signed in to change notification settings - Fork 785
-
-
Notifications
You must be signed in to change notification settings - Fork 785
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
Feature request -- official docker container #458
Comments
Second this request. |
@bd8392 I don't really have bandwidth for this now, but if you'd like to kickstart things perhaps myself and others could collaborate on it :) |
enlighten me, please. how does docker handle management of the host’s network interfaces? built-in and usb dongles? can you run hostapd inside a container? |
sorry, i enlightened myself. apparently you can indeed. looks like quite some work: https://github.com/fgg89/docker-ap |
By bind the etc/interfaces to docker as volume, you can alter it's settings...maybe this is easier... |
go, go, go! |
I managed to run RaspAP within a Docker container without it being privileged or running within the host network namespace (the wifi interface must be moved into the container netns so to speak) for some security concerns. |
Wow that's great! Yes I'm always interested in dockerized apps :-) thanks for all the effort you've done! @noxPHX. Maybe you can post it here, so the docker can become official and others can use it :-). Very cool that you've done it :-) |
I would also be interested in helping with this. Interoperability of raspap and docker would be very beneficial for me. |
How about a new repo dedicated to this, with participants on this issue as collaborators? |
Sure @billz that works for me. However, we could also investigate what breaks RaspAP when docker is installed on the same system and how we can fix it? The install process for RaspAP is pretty streamlined as it is. A docker container might be overkill for how many systemd services are involved. It may turn into a docker-compose deployment, behind more networking complexity. I think the investigation approach also solves @danielwilson654 's problem. We just want to run Docker and RaspAP on the same Pi. |
I'm setting up a Pi4 fresh with RPi OS Lite. In the past, I installed docker with |
Did a fresh install of RPi OS Lite, did Then I installed RaspAP with I changed the SSID to |
I installed docker using the same method but did so after installing RaspAP. |
Yep, installing RaspAP, then docker, it works in NAT or in bridged mode. That's fascinating! |
Hey guys, sorry I have been really busy lately but I am of course interested to continue this project. |
Sounds great. I'd love to see what you've done. |
Wow very cool to see this evolving :-) thank you guys :-) |
I've created this public repo which could serve as a community-led project. Or we can use @noxPHX's repo as a starting point, whichever is easiest. |
The first challenge I'm seeing is
To see if we can reuse what already is built. It defaults to Yes on all options but does not play nicely with
There are several daemons RaspAP relies on and that may throw off the "single process per container" model. |
@jrcichra Well, then you maybe need to use a systemd-enabled Docker container. See https://github.com/alehaa/docker-debian-systemd |
@rugk Thanks for the systemd container. I was able to build a simple Dockerfile and get the web GUI up and running. See my PR: RaspAP/raspap-docker#1 systemd needs to be the initial process in that container. Users will have to start the container detached, then run the setup script inside, which uses the cURL call. |
@jrcichra PR merged, thanks. the limited testing I've done is to access the GUI from the container. it's a great PoC starting point. |
How can i pull and run the arm64 docker image? With the supplied commands it always pulls the amd64 version :/ |
@rusagent try downgrading your Docker version. see pi-hole/docker-pi-hole#735 |
Or, instead of downgrading docker, you could also just clone https://github.com/RaspAP/raspap-docker (thank you, @billz !) and create your own docker image with a simple "docker build ." |
@noxPHX What settings did you use for the non host network version? I'm setting this up so it will with the docker-compose and docker swarm. |
Hello and sorry for missing for such a long time, |
@noxPHX thanks I've had a look. I'll get testing. Does client mode work with your setup? |
@jrcichra I see u were trying to get RaspAP to work with Balena. Have you managed to get it deployed? I started a discussion around this at the Balena forum. But still have no idea how to move forward. |
Hi, I have a spare Pi I can qualify with the Balena docker image. I have more container/Linux know-how since last year so I should be able to assist more. Things like adblock and VPN should work if we set We'll want to make sure nothing on the host system will clash with what's being described in the RaspAP container. Disabling daemons like |
This is the Balena docker-compose I'm trying:
|
Ok. I think I'm where you're at. The guide at https://github.com/RaspAP/raspap-docker still works where the webgui comes up. But starting the hotspot in the container fails:
...but that's a separate problem we can get to once we're on Balena. I remember now that the So step 1 seems to be Balena systemd to support |
I was able to get systemd at least running in the container with this
Next I'll see if I can install the script with the container running. |
I'm where I was at before. Using Belena as a base is much nicer, especially with
It looks like we can't interact with the wlan0 kernel driver:
...even though we should be able to interact with the host kernel (in theory). I got here by doing:
Then the webgui should appear on port 80 and if you do
...while trying to turn on Hotspotting you should be in the same boat with the wlan0 failure. |
Ok, by dealing with
|
@jrcichra Not sure it helps, but this is how I usually setup dnsmasq/dhcp:
|
@luandro yeah, I'd think that would work but for some reason it doesn't:
We're very close though!!! |
@billz @jrcichra |
@NL-TCH it sure can, thanks |
Hi :-) It would be really nice to see an official docker-contianer for this software :-). Because I use to run software ONLY in container like rancher os (keeps mantainance low). Any possibility to see this? :-) maybe I can help developing :-)
The text was updated successfully, but these errors were encountered: