Justin Cormack 6403215635 In the init section use a symlink for /etc/resolv.conf
Unfortunately there are a lot of issues with resolv.conf as we
cannot actually write it into the image from any docker image, as docker will
always have something bind mounted in.

In addition, normally we expect the filesystem to br read only for images
that moby generates, so the actual etc/resolv.conf is likely not to be writeable.

Previously we were adding in a default resolv.conf into every image pointing at
Google's name servers but that is really a bad idea.

Instead, normal images now get an empty default, while images in the `init`
section will get a symlink, currently hard coded to `/run/resolvconf/resolv.conf`
but you can override this with the `files` section to be static or a different
link.

In future, if we have an easy way to build and extract images with user control
of this, we can drop this.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-07-25 14:40:40 +01:00
2017-07-18 13:55:52 +01:00
2017-07-18 13:55:52 +01:00
2017-07-14 11:50:51 +01:00
2017-04-24 23:08:30 +01:00
2017-04-24 23:08:30 +01:00
Description
A toolkit for building secure, portable and lean operating systems for containers
241 MiB
Languages
Go 48.2%
text 21.2%
Shell 14%
Dockerfile 5.7%
OCaml 4.7%
Other 6.2%