Open zorani opened 1 year ago
Hello, I'm not sure if you found it when searching through other issues, but I outlined some config settings for using this image with Pi-hole in this issue discussion. My guess is interface: 127.0.0.1
part of your issue.
Hello,
i got the same issue as zorani is describing, i also found no solution so far:
cp: cannot create special file '/opt/unbound/etc/unbound/dev/random': Operation not permitted cp: cannot create special file '/opt/unbound/etc/unbound/dev/urandom': Operation not permitted cp: cannot create special file '/opt/unbound/etc/unbound/dev/null': Operation not permitted
I am really interested in a solution that will fix this issue.
Executing the above commands inside the container being root leads to the described errors too.
I am also using the latest version of unbound-docker, docker pull mvance/unbound:latest, also with a volume "/etc-unbound:/opt/unbound/etc/unbound/. I am using portainer to setup containers, networks, volumes, ports, ...
To solve the Problem with
chown: cannot access '/opt/unbound/etc/unbound/unbound.log': No such file or directory
i did what is written in unbound.conf: "# If you want to log to a file, use: logfile: /opt/unbound/etc/unbound/unbound.log"
Uncommenting the line "# logfile: /opt/unbound/etc/unbound/unbound.log" helped.
I'm not familiar with Portainer (or Podman). However, I saw a recent comment from @Zanathoz that may have help.
https://github.com/MatthewVance/unbound-docker/issues/22#issuecomment-1637097448
Unfortunately appending :Z doesn't help for this issue as I still have it, but it doesn't appear to hinder DNS resolution.
I did find this issue in my research but haven't been able to devote much more time to troubleshooting.
Hello,
Am using the latest version of unbound-docker, docker pull mvance/unbound:latest ( I think this version, 1.17.0 )
I get the following errors when starting the container fresh with no changes.
This is my unbound.conf file taken from this website https://docs.pi-hole.net/guides/dns/unbound/ I have commented out #so-rcvbuf: 1m to solve another error not shown above found in one of your other closed issues. I also added in the username as you mention that in another thread.
Here is my docker-compose.yml file,
The permissions on my attached volume on my host system,
The permissions for these same files from inside
My naive attempt from inside docker container,
Which changed the permissions as seen from my volume to,
This still gave the same error as before.
I am running on Linux mint 21.1
I did find the following similar thread, https://github.com/MatthewVance/unbound-docker/issues/60, and the threads it leads to but I can't seem to find an exact fix for the above problem.
Hope you can help.
edit:
Just in case this is useful info. I am running docker as a normal user, installed docker desktop with no modifications.
I did notice that even though my pi-hole container works I just can't add to white list, or black list, or add advert lists or any other changes that need a database write.
To solve this I apply chown -R www-data:pihole /etc/pihole from inside my pi docker container when ever I want to update the pihole database.
So, it seems that now with 2 docker images there is a problem run as a normal user.
I suspect running the containers as root might help but I want to avoid that if possible.
edit 2:
I also though it could be a docker uid gid issue.
Checking my host user account, myuser: x :1000:1000:myuser,,,:/home/myuser:/bin/bash
and comparing with _ubound,
_unbound: x :1000:1000::/etc:/dev/null
same UID and GID so that doesn't look like the issue.