nixpkgs/pkgs/build-support/docker
Florian Klink f8031c60b7
dockerTools.fakeNss: add /etc/nsswitch.conf (#134958)
Apparently, a non-existent nsswitch.conf causes a very misleading host
resolution, differing from the defaults people are used to.

According to
https://github.com/golang/go/issues/22846#issuecomment-346377144, glibc
says the default is "dns [!UNAVAIL=return] files".

This means, `/etc/hosts` isn't really honored, causing all sorts of
unexpected behaviour.

Let's prevent this, and first ask `/etc/hosts` before querying DNS, like
we do on NixOS too.
2021-08-20 19:44:17 +02:00
..
default.nix dockerTools.fakeNss: add /etc/nsswitch.conf (#134958) 2021-08-20 19:44:17 +02:00
detjson.py docker: add final newline to detjson.py 2020-11-09 11:39:28 +00:00
examples.nix treewide: runCommandNoCC -> runCommand 2021-08-15 17:36:41 +02:00
nix-prefetch-docker nix-prefetch-docker: output informational messages to stderr 2020-12-01 16:58:29 +00:00
nix-prefetch-docker.nix treewide: stdenv.lib -> lib 2021-01-24 01:49:49 +01:00
stream_layered_image.py dockerTools.streamLayeredImage: resolve duplicate env vars 2021-03-25 23:29:54 +00:00
tarsum.go
tarsum.nix tarsum: init 2021-08-05 08:54:41 +10:00