How to mount a host directory in a Docker container?

You can use docker run or docker container run command with -v option to mount a host directory in a docker container.

Syntax:

Example:

Leave a Reply