Please try to answer the following questions to assess your learning progress:
- How will you create a named data volume with a name, for example
my-products
, using the default driver? - How will you run a container using the image
alpine
and mount the volumemy-products
in read-only mode into the /data container folder? - How will you locate the folder which is associated with the volume
my-products
and navigate to it? Also, how will you create a file,sample.txt
with some content? - How will you run another
alpine
container to which you mount themy-products
volume to the/app-data
folder, in read/write mode? Inside this container, navigate to the/app-data
folder and create ahello.txt
file with some content. - How will you mount a host volume, for example
~/my-project
, into a container? - How will you remove all unused volumes from your system?
- How will you determine the exact version of the Linux kernel and of Docker running on your system?