File Permissions/Ownership Bug in Docker 20.10.25-0ubuntu1

UPDATE 2023-08-28 The bug is now fixed, you only need to update to the newest version of docker on affected systems! ORIGINAL TEXT Yesterday night I have tried to build a container running a python-application as non-root user and I stumbled onto a bug currently tracked as #2029523. Example Dockerfile: FROM alpine:latest ENV BUSTCACHE=2 RUN adduser -S -D -h /home/test test && ls -al /home/test WORKDIR /home/test COPY --chown=test:nogroup foo.txt foo....

2023-08-20 · 3 min · 491 words · Jan Kapellen