$ docker run -v /Users/gabor/work/mydocker:/opt/  mydocker ls -l /opt/

The -v /Users/gabor/work/mydocker:/opt/ will mount the /Users/gabor/work/mydocker directory of the home operating system to the /opt/ directory of the Docker image and run the container. The ls -l /opt/ will list the content of this directory.