Today I Learned: collection of notes, tips and tricks and stuff I learn from day to day working with computers and technology as a developer

View project on GitHub

Mount shared folders on Docker for Mac (beta)

From a docker image you can access folders on your OSX host system. This is useful if Docker is used in your development proces.

$ docker run -v /Users/bob/myapp/src:/src

For a perl Mojolicious application I was able to get access to the log files like this:

$ docker run -v /tmp/app/log:/usr/src/app/log --rm -p 3000:3000 myapp