How to mount a docker volume
from inside the container
inside local directory with docker run
command .
I was trying the -v
option but seems it mounts the current working directory into the container.
https://docs.docker.com/engine/reference/commandline/run/#volume
-v /localdatadir:/containerdatadir
The volume inside my container
is a database volume
and we want it to be available on the local directory .
Any suggestions ?