Skip to content

Commit d229e15

Browse files
committed
Add workaround for building docker on debian 8 (#47106)
Looks like there's a workaround with aufs used in debian 8. Adding `tsflags=nodocs` works around this issue and results in smaller image files also. Closes #47097 and elastic/infra#14780
1 parent 2be351c commit d229e15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

distribution/docker/src/docker/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ FROM centos:7
3939

4040
ENV ELASTIC_CONTAINER true
4141

42-
RUN for iter in {1..10}; do yum update -y && \
43-
yum install -y nc && \
42+
RUN for iter in {1..10}; do yum update --setopt=tsflags=nodocs -y && \
43+
yum install -y --setopt=tsflags=nodocs nc && \
4444
yum clean all && exit_code=0 && break || exit_code=\$? && echo "yum error: retry \$iter in 10s" && sleep 10; done; \
4545
(exit \$exit_code)
4646

0 commit comments

Comments
 (0)