ricardbejarano / dnsmasq

🤿 Built-from-source container image of Dnsmasq
MIT License
17 stars 4 forks source link

Running the container results in error #3

Closed cmdrogogov closed 1 year ago

cmdrogogov commented 1 year ago

OS: Various flavors of Fedora, tried on CoreOS also. utilizing Podman 4.5.0 Error is persistent across several different machines, unlikely to be hw issue.

Running the container with the following command:

podman run --name dnsmasq -p 53:53 -v /etc/dnsmasq.conf:/etc/dnsmasq.conf ricardbejarano/dnsmasq

Produces the following error:

dnsmasq: cannot open or create lease file /var/lib/misc/dnsmasq.leases: Permission denied

It is not an SELinux issue, as that has been temporarily set to permissive, and it's not a permissions issue either.

I've also attempted using something like

-v /homedir/user/dnsmasq.leases:/var/lib/misc/dnsmasq.leases:z

To map the file directly, but I get the same error.

ricardbejarano commented 1 year ago

What are the contents of the dnsmasq.conf file?

ricardbejarano commented 1 year ago

Closing as stale.