Add links to volumes.

This commit is contained in:
Will Sargent 2014-11-04 17:54:51 -08:00
parent df2516f659
commit a72905a16b

View file

@ -256,7 +256,7 @@ You can mount them in several docker containers at once, using `docker run -volu
Because volumes are isolated filesystems, they are often used to store state from computations between transient containers. That is, you can have a stateless and transient container run from a recipe, blow it away, and then have a second instance of the transient container pick up from where the last one left off.
See [advanced volumes](http://crosbymichael.com/advanced-docker-volumes.html) for more details.
See [advanced volumes](http://crosbymichael.com/advanced-docker-volumes.html) for more details. Container42 is [also helpful](http://container42.com/2014/11/03/docker-indepth-volumes/).
As of 1.3, you can [map MacOS host directories as docker volumes](http://docs.docker.com/userguide/dockervolumes/#mount-a-host-directory-as-a-data-volume) through boot2docker:
@ -264,6 +264,8 @@ As of 1.3, you can [map MacOS host directories as docker volumes](http://docs.do
docker run -v /Users/wsargent/myapp/src:/src
```
You can also use remote NFS volume if you're [feeling brave](http://www.tech-d.net/2014/03/29/docker-quicktip-4-remote-volumes/).
## Exposing ports
Exposing ports through the host container is [fiddly but doable](http://docs.docker.io/use/port_redirection/#binding-a-port-to-an-host-interface).