docker mount volume

docker run -v /host/directory:/container/directory -other -options image_name command_to_run

Here is what the above code is Doing:
1. We’re using the docker run command to run a container.
2. We’re using the -v flag to mount a volume.
3. We’re mounting the host directory /host/directory to the container directory /container/directory.
4. We’re running the command command_to_run in the container.