Comments (5)
I merely used the rootfs for CI testing and not as a real deployment. If you have something specific in mind, please elaborate and we can see how to work things out.
Generally you can tell Docker to create multiple network interfaces for the router, on first boot OpenWrt will create by default a LAN interface (dhcp server) on eht0 and (if exists) a WAN interface (dhcp client) on eth1. Docker on the other hand automatically assigns IP addresses to container network interfaces. To make this work, you'd need to create an appropriate /etc/config/network
file and mount it into the container.
Another step could be to improve the default configuration of the rootfs
container, I did some things over here but never followed up with it.
from docker.
My plan was using openwrt as home router.
I am running arch linux on an always on server machine that I want to deploy other containers to.
My current home router is a bit slow though i was interested in trying out openwrt. As I already have an OS installed on the server the only solution i saw was virtualizing openwrt but that turned out to be quite difficult as i am no expert in using kvm nor have any interface other than SSH into the server.
So I found this container and thought this would be a much more approachable solution (also for the many people wanting to use openwrt on a raspberrypi) as i use docker all the time.
But as no further information is provided i don't know if the container has to run in privileged mode or what devices need to be passed through how to this image. Also i would love to use the webinterface for openwrt.
Thank you and all the best
Paul
from docker.
Hi, I found this repo and the docker image but there are no real instructions provided for running it.
Sure there is:
docker run --rm -it openwrtorg/rootfs
but this does not help as it does not get the container running properly:Failed to resize receive buffer: Operation not permitted /etc/preinit: line 5: can't create /sys/devices/system/cpu/microcode/reload: Read-only file system ip: RTNETLINK answers: Operation not permitted Press the [f] key and hit [enter] to enter failsafe mode Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level ip: can't send flush request: Operation not permitted ip: SIOCSIFFLAGS: Operation not permitted Please press Enter to activate this console.What caps does one need to add to get this running? Does it need to be in privileged mode? What devices need to be mounted into the container? How can the webinterface be launched?
I want to use this image for having a router on my home server in docker for my home network.
Thank you and all the best!
Completely agree with @firstdorsal
I'm also looking forward for a real instruction example to properly make a docker image
Special focus on arm target would be great since the market is doing a lot about those device (raspberry but also rockpi) and they are getting more and more network devices. An openwrt cointainer could easily be a must have to managed al these interfaces.
Thank you for your time and efford!
from docker.
+1, would love to see OpenWRT being able to run as a container on a Raspi4. Currently all of its resources go to waste to run a 5Mb OS, and it would be good to put the other 3.9 cores and 3Gb RAM to some use.
from docker.
Containers are somewhat meant to run a single tool and not an operating system including a process manager. Without services like ubusd OpenWrt is not fun. Isn't Alpine an option for you?
from docker.
Related Issues (20)
- kmodloader: no module folders for kernel version 6.2.2-arch1-1 found HOT 1
- kmodloader: no module folders for kernel version 6.2.2-arch1-1 found HOT 2
- mikrotik container HOT 4
- openwrt/imagebuilder:x86-64-v22.03.4 is building master.... HOT 7
- Cross architecture rootfs images are declared as amd64 HOT 4
- Add sudo to the container HOT 2
- Add 23.05 to cron?
- Building `libnl` with the sdk fails HOT 2
- A new kernel breaks image builder images HOT 12
- Proper documentation request HOT 2
- feature request: create and auto update Dev Container Templates repo
- Error: chdir to cwd ("/home/build/openwrt") HOT 1
- ath79-generic-openwrt-23.05 is configured for the mikrotic target instead HOT 3
- Release images for loongarch64
- Add latest version tag of a milestone
- no network with net_admin Capability
- tag ramips-mt7621-22.03.2 is same as ramips-mt7620-22.03.2 HOT 1
- Dockerfile: add "feeds.conf" to "imagebuilder" too HOT 2
- Why do snapshot images stop receiving updates? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker.