We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06c8e4d commit 25448dbCopy full SHA for 25448db
4 files changed
chown/Dockerfile
@@ -0,0 +1,8 @@
1
+FROM mcr.microsoft.com/windows/servercore:1809
2
+RUN net user /add User03 Passw0rd
3
+COPY test C:/test1
4
+COPY --chown=User03 test C:/test2
5
+COPY --chown=ContainerUser test C:/test3
6
+RUN icacls \test1
7
+RUN icacls \test2
8
+RUN icacls \test3
chown/README.md
@@ -0,0 +1,7 @@
+# COPY --chown
+
+Play a little with `COPY --chown=user` on Windows.
+See also
+https://github.com/moby/moby/pull/35521
+https://github.com/docker/windows-container-utility
chown/test/README.md
@@ -0,0 +1,3 @@
+# test
+Just some test files that will get copied into the container image.
chown/test/hello.txt
@@ -0,0 +1 @@
+hello
0 commit comments