aboutsummaryrefslogtreecommitdiff
path: root/test/build/volume-perms/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'test/build/volume-perms/Dockerfile')
-rw-r--r--test/build/volume-perms/Dockerfile6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/build/volume-perms/Dockerfile b/test/build/volume-perms/Dockerfile
new file mode 100644
index 000000000..4dced7738
--- /dev/null
+++ b/test/build/volume-perms/Dockerfile
@@ -0,0 +1,6 @@
+FROM alpine
+VOLUME /vol/subvol
+# At this point, the directory should exist, with default permissions 0755, the
+# contents below /vol/subvol should be frozen, and we shouldn't get an error
+# from trying to write to it because we it was created automatically.
+RUN dd if=/dev/zero bs=512 count=1 of=/vol/subvol/subvolfile