qdm12 / dns

Docker DNS server on steroids to access DNS-over-TLS from Cloudflare, Google, Quad9, Quadrant or CleanBrowsing
https://hub.docker.com/r/qmcgaw/cloudflare-dns-server
MIT License
231 stars 38 forks source link

does not work after reboot #27

Closed woiza closed 4 years ago

woiza commented 4 years ago

$ docker-compose up everything works as expected $ sudo reboot

It does not work anymore...

$ docker-compose logs ERROR cannot write to file "/unbound/root.hints": open /unbound/root.hints: permission denied

docker-compose down and docker-compose up again and everything is back to normal. Any idea on how to make sure the container/service functions properly after a reboot?

qdm12 commented 4 years ago

Interesting, thanks for reporting.

~Does it do the same error when you do docker-compose stop? It's likely that the file already exists and somehow it cannot overwrite it, I'll check the permissions flags used when creating the file.~

The files are written with 'read only' permission because I'm a security maniac 😄

It does give the same error when using docker-compose stop, I'm fixing it now by writing the files with 'read and write only' permissions.