9951 explained code solutions for 126 technologies


dockerHow to mount directory for docker container


docker run -it -v /var/www:/www ubuntuctrl + c
docker run

launch docker container

-it

connect to container right after launch

-v

mount specified directories

/var/www

directory on the local (docker host) machine to mount

/www

path that mounted directory will be accessible from container

ubuntu

name of the image to run container from