Today I Learned

hashrocket A Hashrocket project

Docker volume binding

When starting a docker dir, you can map a dir on the host system to a dir in the container with the -v option.

docker start my-image -v /var/logs/app:/app/log

In this case the host dir is on the left side of the colon and the docker container dir is on the right.

See More #command-line TILs