File tree Expand file tree Collapse file tree 5 files changed +30
-0
lines changed Expand file tree Collapse file tree 5 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ FROM alpine:3.6
33RUN apk add --no-cache \
44 ca-certificates
55
6+ # set up nsswitch.conf for Go's "netgo" implementation (which Docker explicitly uses)
7+ # - https://github.com/docker/docker-ce/blob/v17.09.0-ce/components/engine/hack/make.sh#L149
8+ # - https://github.com/golang/go/blob/go1.9.1/src/net/conf.go#L194-L275
9+ # - docker run --rm debian:stretch grep '^hosts:' /etc/nsswitch.conf
10+ RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf
11+
612ENV DOCKER_CHANNEL stable
713ENV DOCKER_VERSION 17.06.2-ce
814# TODO ENV DOCKER_SHA256
Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ FROM alpine:3.6
33RUN apk add --no-cache \
44 ca-certificates
55
6+ # set up nsswitch.conf for Go's "netgo" implementation (which Docker explicitly uses)
7+ # - https://github.com/docker/docker-ce/blob/v17.09.0-ce/components/engine/hack/make.sh#L149
8+ # - https://github.com/golang/go/blob/go1.9.1/src/net/conf.go#L194-L275
9+ # - docker run --rm debian:stretch grep '^hosts:' /etc/nsswitch.conf
10+ RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf
11+
612ENV DOCKER_CHANNEL edge
713ENV DOCKER_VERSION 17.07.0-ce
814# TODO ENV DOCKER_SHA256
Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ FROM alpine:3.6
33RUN apk add --no-cache \
44 ca-certificates
55
6+ # set up nsswitch.conf for Go's "netgo" implementation (which Docker explicitly uses)
7+ # - https://github.com/docker/docker-ce/blob/v17.09.0-ce/components/engine/hack/make.sh#L149
8+ # - https://github.com/golang/go/blob/go1.9.1/src/net/conf.go#L194-L275
9+ # - docker run --rm debian:stretch grep '^hosts:' /etc/nsswitch.conf
10+ RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf
11+
612ENV DOCKER_CHANNEL stable
713ENV DOCKER_VERSION 17.09.0-ce
814# TODO ENV DOCKER_SHA256
Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ FROM alpine:3.6
33RUN apk add --no-cache \
44 ca-certificates
55
6+ # set up nsswitch.conf for Go's "netgo" implementation (which Docker explicitly uses)
7+ # - https://github.com/docker/docker-ce/blob/v17.09.0-ce/components/engine/hack/make.sh#L149
8+ # - https://github.com/golang/go/blob/go1.9.1/src/net/conf.go#L194-L275
9+ # - docker run --rm debian:stretch grep '^hosts:' /etc/nsswitch.conf
10+ RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf
11+
612ENV DOCKER_CHANNEL test
713ENV DOCKER_VERSION 17.10.0-ce-rc1
814# TODO ENV DOCKER_SHA256
Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ FROM alpine:%%ALPINE-VERSION%%
33RUN apk add --no-cache \
44 ca-certificates
55
6+ # set up nsswitch.conf for Go's "netgo" implementation (which Docker explicitly uses)
7+ # - https://github.com/docker/docker-ce/blob/v17.09.0-ce/components/engine/hack/make.sh#L149
8+ # - https://github.com/golang/go/blob/go1.9.1/src/net/conf.go#L194-L275
9+ # - docker run --rm debian:stretch grep '^hosts:' /etc/nsswitch.conf
10+ RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf
11+
612ENV DOCKER_CHANNEL %%DOCKER-CHANNEL%%
713ENV DOCKER_VERSION %%DOCKER-VERSION%%
814# TODO ENV DOCKER_SHA256
You can’t perform that action at this time.
0 commit comments