Mapping a host's file directory to a Docker container

To map a host's file directory to a Docker container use the -v flag followed by the host file path, followed by a colon, followed by the container's destination path e.g.

sudo docker run -it -v /tmp:/tmp2 ubuntu bash

Resources

Tags:
Source:
0935hrs.txt
Published:
05-10-2015 09:35