Skip to content

Commit 5b31528

Browse files
committed
Add the second assignment
[refs #b98bd825a820]
1 parent 406aece commit 5b31528

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

persisting_data/assignment2.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
* What can you find in the directory /var/www/html?

0 commit comments

Comments
 (0)