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


connect to container right after launch


mount specified directories


directory on the local (docker host) machine to mount


path that mounted directory will be accessible from container


name of the image to run container from