Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Container status always "Restarting (1)" & no logs #57

Open
jaydubbya opened this issue Dec 12, 2024 · 0 comments
Open

Container status always "Restarting (1)" & no logs #57

jaydubbya opened this issue Dec 12, 2024 · 0 comments

Comments

@jaydubbya
Copy link

jaydubbya commented Dec 12, 2024

First off, thank you for the work you've done to make and maintain this image. I'm hoping there's just something simple that I missed in trying to get things running.

edit: I'm installing on a rpi4 with bookworm
edit#2: I am attempting to run Unbound as a recursive server

I'm using docker compose, and the issue I'm having is after starting the container, listing the container always shows the Status as "Restarting (1)" and never in an up and healthy status. Attempting to look at the logs using docker compose logs -f [service] provides no output to the terminal.

Output when starting the container in the background:
image

Output when starting the container in the foreground:
image

Output when listing the container:
image
image

I'm attempting to use a custom "unbound.conf" file, and believe I have followed the instructions in the guide for a customized Unbound configuration correctly?

My file structure (before starting the container) is:

After starting the container, two directories and one .pid file are added to the /home/unbound directory: dev, var, and unbound.pid

Here is my compose.yml:
services:
unbound:
container_name: unbound
image: mvance/unbound-rpi:latest
ports:
- "5335:53/tcp"
- "5335:53/udp"
volumes:
- '/home/unbound:/opt/unbound/etc/unbound/'
restart: unless-stopped

Here is my unbound.conf:
server:
verbosity: 1
interface: 0.0.0.0
port: 53
do-ip4: yes
do-udp: yes
do-tcp: yes
access-control: [my_ip_range] allow
do-ip6: no
prefer-ip6: no
root-hints: "/home/unbound/root.hints"
harden-glue: yes
harden-dnssec-stripped: yes
use-caps-for-id: no
edns-buffer-size: 1232
prefetch: yes
num-threads: 1
private-address: 192.168.0.0/16
private-address: 169.254.0.0/16
private-address: 172.16.0.0/12
private-address: 10.0.0.0/8
private-address: fd00::/8
private-address: fe80::/10

Thank you for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant