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

Support for systemd-resolve #32

Open
smihael opened this issue Jan 5, 2021 · 0 comments
Open

Support for systemd-resolve #32

smihael opened this issue Jan 5, 2021 · 0 comments

Comments

@smihael
Copy link

smihael commented Jan 5, 2021

This image uses systemd-networkd to regenerate the host's /etc/resolv.conf. However, on Ubuntu 20.04-based systems resolv.conf is linked to ../run/systemd/resolve/stub-resolv.conf which hints to the use of systemd-resolve service.

This causes error as /tmp/systemd/network is not present.

$ docker run  --hostname resolvable -v /var/run/docker.sock:/tmp/docker.sock -v /run/systemd:/tmp/systemd   -v /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket  mgood/resolvable

2021/01/05 00:59:19 Starting resolvable 0.2 ...
2021/01/05 00:59:19 got local address: 172.17.0.2
2021/01/05 00:59:19 systemd: systemd-resolved.service: loading config from /config/systemd/resolved.conf.d/*.conf
2021/01/05 00:59:19 systemd: template: pattern matches no files: `/config/systemd/resolved.conf.d/*.conf`
2021/01/05 00:59:19 systemd: systemd-networkd.service: loading config from /config/systemd/network/*.network
2021/01/05 00:59:19 systemd: generating /tmp/systemd/network/99-resolvable.network
2021/01/05 00:59:19 systemd: open /tmp/systemd/network/99-resolvable.network: no such file or directory
2021/01/05 00:59:19 systemd: %s: no configs written, skipping reload systemd-networkd.service
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