249
|
1 FROM ubuntu:16.04
|
|
2
|
|
3 RUN apt-get update
|
|
4 RUN apt-get install -y ca-certificates
|
|
5
|
|
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 echo 'hosts: files dns' > /etc/nsswitch.conf
|
|
11
|
|
12 ENV DOCKER_CHANNEL stable
|
|
13 ENV DOCKER_VERSION 17.03.2-ce
|
|
14 ENV PATH "$PATH:/usr/local/bin"
|
|
15 ENV DOCKER_HOST unix:///var/run/docker.sock
|
|
16 #RUN set -ex
|
|
17 # why we use "curl" instead of "wget":
|
|
18 # + wget -O docker.tgz https://download.docker.com/linux/static/stable/x86_64/docker-17.03.1-ce.tgz
|