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 406aece commit 5b31528Copy full SHA for 5b31528
persisting_data/assignment2.md
@@ -0,0 +1,17 @@
1
+## Mounting volumes
2
+### Mount a volume containing files
3
+* Create a named volume test-data
4
+* Start a sh in a container running alpine
5
+ * Mount the volume test-data to /data
6
+* Create some files and folders in the volume
7
+ * `touch /data/test.file`
8
+ * `mkdir /data/some_dir`
9
+* Stop the container running alpine
10
+* Start bash shell a container running your nginx image
11
+ * Mount the volume test-data to /var/www/html
12
+* What can you find in the directory /var/www/html?
13
+
14
+### Mount a new volume
15
+* Start bash shell in a container running your nginx image
16
+ * Mount a new named or anonymous volume to /var/www/html
17
0 commit comments