mirror of
https://github.com/docker/cli.git
synced 2026-01-19 21:41:31 +03:00
systemd systems do not require a /etc/hosts file exists since an nss module is shipped that creates localhost implicitly. So, mounting /etc/hosts can fail on these sorts of systems, as was reported on CoreOS in issue #5812. Instead of trying to bind mount just copy the hosts entries onto the containers private /etc/hosts. Docker-DCO-1.1-Signed-off-by: Brandon Philips <brandon.philips@coreos.com> (github: philips) Upstream-commit: 000a37fe9d13a173ab46fcd5b8e693950a438f98 Component: engine