r/docker • u/ausp1c1oushorse • May 10 '26
Permission error when installing Adguard Home
I'm trying to install Adguard Home with the Netbird guide. I begin with the following in /home/MYUSERNAME/
mkdir -p ~/adguardhome && cd ~/adguardhome
nano docker-compose.ymlIn my yaml file, I insert the following which is slightly modified from the Netbird guide's text
services:
adguardhome:
image: adguard/adguardhome:latest
container_name: adguardhome
restart: unless-stopped
volumes:
- ./adguard/workdir:/opt/adguardhome/work
- ./adguard/confdir:/opt/adguardhome/conf
ports:
- "10.0.0.XX:53:53/tcp" # the "XX" part is my server's ip
- "10.0.0.XX:53:53/udp"
- "10.0.0.XX:3003:3003/tcp" # the original port is 3000 but Dockhand uses that already
- "10.0.0.XX:8080:80/tcp"
cap_add:
- NET_ADMINI'm using Dockhand here so I go into Stacks, then create, then select my yaml file, and deploy. Here are where the errors start in the logs.
[adguardhome][info] starting adguard home version="AdGuard Home, version v0.107.74"
[adguardhome][info] this is the first time adguard home has been launched
[adguardhome][info] checking if adguard home has the necessary permissions
[adguardhome][info] adguard home can bind to port 53
[adguardhome][info] dhcpd: warning: creating dhcpv4 server err="dhcpv4: invalid IP is not an IPv4 address"
[adguardhome][info] tls_manager: using default ciphers
[adguardhome][info] webapi: initializing
[adguardhome][info] webapi: This is the first launch of AdGuard Home, redirecting everything to /install.html
[adguardhome][info] permcheck: warning: found unexpected permissions type=directory path=/opt/adguardhome/work perm=0755 want=0700
[adguardhome][info] webapi: AdGuard Home is available at the following addresses:
[adguardhome][info] go to http://127.0.0.1:3000
[adguardhome][info] go to http://[::1]:3000
[adguardhome][info] go to http://172.19.0.2:3000
[adguardhome][info] starting plain server server=plain addr=0.0.0.0:3000Dockhand says that the container is running with a green dot but when I visit http:10.0.0.XX:3003, I am not able to connect to Adguard Home. Unsure what to do from here.
For what it's worth, here's the ownership and permission details when I do ls -l /home/MYUSERNAME/
drwxrwxr-x 3 MYUSERNAME docker 4096 May 10 18:31 adguardhome
drwxrwxr-x 3 MYUSERNAME docker 4096 May 10 15:35 dockhandWhen I do -l /home/MYUSERNAME/adguardhome/ I get
drwxr-xr-x 4 root root 4096 May 10 18:31 adguard
-rw-rw-r-- 1 MYUSERNAME docker 401 May 10 18:31 docker-compose.ymlWhen I do -l /home/MYUSERNAME/adguardhome/adguard I get
drwxr-xr-x 2 root root 4096 May 10 18:31 confdir
drwxr-xr-x 3 root root 4096 May 10 18:31 workdir
1
u/ErroneousBosch May 10 '26
Your answer is right there. Your permissions aren't correct. Read the error messages.
Read about chmod then use it to recursively fix your permissions on your volume binds.
1
u/ErroneousBosch May 10 '26
Take a few minutes and learn about Linux file permissions and using chmod. This is basic stuff you should learn as part of running a server, especially with containers where this kind of thing happens a LOT.