Showcase modified timestamp behaviour for bind-mounts
The sample is based on https://github.com/bechhansen/docker-win-5543/tree/master.
I just added the possibility to specify the base path where to create the files.
To run the programm:
-
Clone the repositor
git clone [email protected]:jbaeck/docker-modified.git
-
Start a java container
docker run --rm -ti -v .:/tmp/bind-mount -w /tmp/bind-mount/docker-modified eclipse-temurin:17 /bin/bash
-
Compile the java-class
javac ModifiedTest.java
-
Run the programm / this will showcase the difference in the timestamps
java ModifiedTest
-
Run the program outside the bind-mounted directory / timestamps are equal
java ModifiedTest /tmp