We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2fa424 commit 8965712Copy full SHA for 8965712
docs/features/files.md
@@ -1,5 +1,14 @@
1
# Files and volumes
2
3
+## File mapping
4
+
5
+It is possible to map a file or directory from your FileSystem into the container as a volume using `withFileSystemBind`:
6
+```java
7
+String pathToFile = System.getProperty("user.home") + "/.aws";
8
+new GenericContainer(...)
9
+ .withFileSystemBind(pathToFile, "/home/user/.aws", BindMode.READ_ONLY)
10
+```
11
12
## Volume mapping
13
14
It is possible to map a file or directory **on the classpath** into the container as a volume using `withClasspathResourceMapping`:
0 commit comments