User Tools

Site Tools


docker:containers:run_a_docker_container

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
docker:containers:run_a_docker_container [2020/11/11 12:09] 192.168.1.1docker:containers:run_a_docker_container [2020/11/11 12:12] (current) 192.168.1.1
Line 112: Line 112:
 docker container run --name docker-nginx -d -p 8080:80 -v /mnt:/var/www nginx docker container run --name docker-nginx -d -p 8080:80 -v /mnt:/var/www nginx
 </code> </code>
 +
 +<WRAP info>
 +**NOTE:**  Any data written to **/var/www** within the container is actually accessing **/mnt** on the host.
 +
 +This option is useful for anyone running a database or application that requires persistence within Docker.
 +
 +</WRAP>
  
  
docker/containers/run_a_docker_container.1605096584.txt.gz · Last modified: 2020/11/11 12:09 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki