I know I can mount a directory in my host on my container using something like
docker run -t -i -v '/on/my/host:/on/the/container' ubuntu /bin/bash
Is there a way to create more than one host-container pair? e.g. a comma-separated list, or pass in an array?
You can have Read only or Read and Write only on the volume
You can use
-v
option multiple times indocker run
command to mount multiple directory in container:Or you can do
Pass multiple
-v
arguments.For instance: