Mounting directory from host machine to container in Docker

Just as a final update, this feature is now released in Docker (though the API has changed since the pull request linked by @imiric).

Simply use a command like

docker run -v /tmp:/root myImage

in order to mount /tmp from the host machine as /root within the image.

Source: https://docs.docker.com/engine/userguide/dockervolumes/

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)