I have a MT-6000 router FW 4.77 and installed Adguardhome on it.
Because I’ve changed my homeserver with docker possibilities , I want to ‘reinstall’ AdGuardHome in the docker.
After I disabled the AGH on the router, install the AGH in the docker, I’m getting the message «failed to bind host port for 0.0.0.0:53:172.27.0.2:53/tcp: address already in use »
I’ve found some solutions for a RasPi and Ubuntu but they do not work.
If you're intent on running Docker you should consider switching over to pure/vanilla OpenWrt as the GL firmware has customization, limitations that can conflict with routing. GL firmware was designed for SOHO, not home labbing. You'll be on your own as Docker is not supported.
The difficult part is understanding the DSA switch implementation in OpenWrt to docker.
Docker has two type containers, either it is a self hosted container, it will use in normal behaviour 0.0.0.0, however in OpenWrt that is this 172.16.x.x subnet from device docker0 which is part of zone docker I believe.
^ though my knowledge is limited on this section because I used docker bridges and changing the compose files to get my own bridges, just it was already confusing for me
Also a docker bridge uses: br-<bridge id notation> and there are some issues with this because you need to make sure this bridge keeps up even when empty, because docker is unaware, and will add its veth devices even when the bridge would not be up which causes errors.
Then you can create a new interface with protocol unmanaged and with this generated br- bridge selected, and then add your own firewall zone
I guess if you get the hang of this it would be much easier, but it is worthy to know this beforehand, I can see alot of people getting confusing with this, currently I no longer use OpenWrt for docker, instead a debian 13 distro on proxmox with portainer, imo it is a much easier implementation, I use all docker containers as dhcp cliënt over vlans and assign static ip from the router.
Ps: docker network list can be very convient if you need to know the exact generated bridge in OpenWrt.
@xize11 Docker in openwrt? I'll guess I wasn't clear enough.
I do have a proxmox machine with docker on it. I was trying to disable the AGH IN the MT-6000 router and install it on the Proxmox server.
At the moment I have a Ubuntu server for my docker on thye Proxmox machine but I want to install, in the future, a Debian server directly on Proxmox.
Hello, I've installed AdGuardHome in docker using a macvlan and disabled the AdGuardHome on the Glinet router.
Changed the DNS setting to manual and pointed it to the ipaddress of the AGH docker.
It works, but there's only one ipaddress (router) in the list of clients.
I remember the router had the same problem in the beginning. Maybe someone has a solution for that.
If it was me, I guess I would do it to make updating easier without the problems you can have with scripts or packages, sometimes things can become very cumbersome and complicated when something goes wrong, because it is Linux and you step over the boundary from gl tested code which can introduce unknown things.
with a docker container the maintainer already tested it, you can view it as a all complete package, and everytime when you rebuild the package it resets everything in that container.
docker images kinda run like a vm except it runs directly on the current kernel of the router which mean it is lighter than a traditional vm, everytime there is a new update it is just a mather of removing the image, deleting the container and then rebuilding the container with a new pulled image, if you setup your container properly all saved things get saved to a binded folder directly on the router or usb mount so the configuration never gets lost, there is software like portainer which can make recreating alot easier.
It is a lazy way of doing things, but can be very convient especially if you don't want to be bothered in checking issues.
The only down side with docker is, that docker requires alot of space close to 1gb, this is why I usually don't use it on a router.
On my nuc I made my own private cloud with jellyseerr and jellyfin almost counting to 10 containers, including lancache-monolithic its too much to manually update them, and check if updating doesn't break them (i.e kernel limitations, missing packages on distro), with docker it just as easy as recreating the container with a newer image.
@lsquare I'm new to Proxmox and docker. I just want to know how it works.
Updating the AGH is much easier in docker (yes, I know there's an update.sh) but since I've my AGH on another machine, it's reacting slower.
So yes, I'm considering to return to AGH on the router.
edit: back on the router and my page, loads much faster.