A toolkit for building secure, portable and lean operating systems for containers
Go to file
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
cmd/moby Error if there are duplicate service names 2017-07-10 14:50:04 +01:00
docs Add support for onshutdown 2017-07-18 13:55:52 +01:00
examples Add an example of building an application and running in Docker or LinuxKit 2017-06-07 16:24:32 +01:00
pkg/init-container Move Go code to src/cmd 2017-06-12 15:33:53 +02:00
src In the init section use a symlink for /etc/resolv.conf 2017-07-25 14:40:40 +01:00
test Add support for onshutdown 2017-07-18 13:55:52 +01:00
vendor Bump to image-spec v1.0.0 and runtime-spec v1.0.0 2017-07-20 12:23:09 +01:00
.gitignore Fix gitignore to not ignore moby directory 2017-05-26 14:45:19 +01:00
circle.yml Makefile: Update for ease of Homebrew installation 2017-07-14 10:03:44 +01:00
CONTRIBUTING.md Move Contributing to top level 2017-07-14 11:50:51 +01:00
LICENSE Add license files 2017-04-24 23:08:30 +01:00
Makefile Makefile: Update for ease of Homebrew installation 2017-07-14 10:03:44 +01:00
NOTICE Add license files 2017-04-24 23:08:30 +01:00
vendor.conf Bump to image-spec v1.0.0 and runtime-spec v1.0.0 2017-07-20 12:23:09 +01:00