Skip to content

Commit e31e1f7

Browse files
authored
[sonic-slave]: install docker-ce 17.03.02 stable version (#774)
1 parent bce5446 commit e31e1f7

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

sonic-slave/Dockerfile

+15-2
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,21 @@ EXPOSE 22
228228
RUN git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git /usr/share/depot_tools
229229
ENV PATH /usr/share/depot_tools:$PATH
230230

231-
# Install docker engine 1.13.0 inside docker and enable experimental feature
232-
RUN curl -sSL https://get.docker.com/ | sh && apt-get install -y --force-yes -q docker-engine=1.13.0-0~debian-jessie
231+
# Install docker engine 17.03.2~ce-0 inside docker and enable experimental feature
232+
RUN apt-get update
233+
RUN apt-get install -y \
234+
apt-transport-https \
235+
ca-certificates \
236+
curl \
237+
gnupg2 \
238+
software-properties-common
239+
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
240+
RUN add-apt-repository \
241+
"deb [arch=amd64] https://download.docker.com/linux/debian \
242+
$(lsb_release -cs) \
243+
stable"
244+
RUN apt-get update
245+
RUN apt-get install -y docker-ce=17.03.2~ce-0~debian-jessie
233246
RUN echo "DOCKER_OPTS=\"--experimental\"" >> /etc/default/docker
234247

235248
# Add user

0 commit comments

Comments
 (0)