mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 18:11:35 +00:00
A toolkit for building secure, portable and lean operating systems for containers
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> |
||
---|---|---|
cmd/moby | ||
docs | ||
examples | ||
pkg/init-container | ||
src | ||
test | ||
vendor | ||
.gitignore | ||
circle.yml | ||
CONTRIBUTING.md | ||
LICENSE | ||
Makefile | ||
NOTICE | ||
vendor.conf |