Developing Perl code in Docker
$ docker run -v /Users/gabor/work/mydocker:/opt/ mydocker perl /opt/hw.pl
- Mount a directory of the host OS to a directory in the Docker image.
- Run the code
$ docker run -v /Users/gabor/work/mydocker:/opt/ mydocker perl /opt/hw.pl