Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit b01bc1f

Browse files
ctalledorodnymolina
authored andcommitted
Use the latest docker version in alpine-based images.
When using alpine latest + Docker 18.09.8-ce, the "docker pull" command sometimes fails with an error such as: "failed to register layer: Error processing tar file(exit status 1): operation not permitted" By updating Docker to version 19.03 the problem goes away, suggesting that the cause is some incompatibility between the docker 18.09 and the alpine-based libraries.
1 parent 183dede commit b01bc1f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dockerfiles/alpine-docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
FROM alpine:latest
66

7-
RUN apk update && apk add docker
7+
RUN sed -i 's/v3.10/latest-stable/g' /etc/apk/repositories && apk update && apk add docker

dockerfiles/alpine-supervisord-docker/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
FROM alpine:latest
1010

1111
# docker
12-
RUN apk add --update docker && rm -rf /tmp/* /var/cache/apk/*
12+
RUN sed -i 's/v3.10/latest-stable/g' /etc/apk/repositories && \
13+
apk add --update docker && \
14+
rm -rf /tmp/* /var/cache/apk/*
1315

1416
# supervisord
1517
RUN apk add --update supervisor && rm -rf /tmp/* /var/cache/apk/*

0 commit comments

Comments
 (0)