Why Docker COPY doesn't change file permissions? (--chmod)
Given this Dockerfile : FROM docker.io/alpine RUN mkdir test # RUN umask 0022 COPY README /test/README COPY --chmod=777 README /test/README-777 COPY --chmod=755 README /test/README-755 COPY FORALL /test/FORALL COPY --chmod=777 FORALL /test/FORALL-777 COPY --chmod=755 FORALL /test/FORALL-755 RUN ls -la /test I'd expect to have the read , write , execute permi