Task 3: Creating volume
1. You need to use docker volume create
to create a volume and share the volume between two containers.
2. You need to use bind mounts
to share a directory between two containers.
Note: 1 and 2 are independent steps. Make sure you include the following into your report:
- Briefly describe how you did it, and use screenshots to assist your explanation. (10 points)
- What's the difference between these two steps? (5 points)
3. Answer the following questions: (20 points)
- Please explain the difference between Docker Container and Virtual Machine. *(10 points)
- Docker is more unsafe than virtual machine, please explain why and what's causing this issue. (10 points)