docker automatically create and mount volume code example
Example: docker mount volume
docker run -v /host/directory:/container/directory -other -options image_name command_to_run
docker run -v /host/directory:/container/directory -other -options image_name command_to_run