Commit 03ad8eec authored by Profpatsch's avatar Profpatsch

containers/helpers/standalone-docker: add dns to nsswitch hosts

Without dns resolving, running the containers inside docker networks won’t
work (because the hostnames can’t be resolved).
parent 1267005a
......@@ -71,7 +71,11 @@ let
# make localhost resolvable
echo "127.0.0.1 localhost" > /etc/hosts
echo "hosts: files" > /etc/nsswitch.conf
# enable hosts file (`files`) and dns resolution (`dns`)
# TODO: might make sense to make this more generic
# libnss_dns.so, libnss_files.sh … provide these
# (TODO where do they come from?)
echo "hosts: files dns" > /etc/nsswitch.conf
''
+ rootSetupScript;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment