mirror of
https://github.com/wsargent/docker-cheat-sheet.git
synced 2025-12-17 23:50:13 +01:00
Add links to volumes.
This commit is contained in:
parent
df2516f659
commit
a72905a16b
1 changed files with 3 additions and 1 deletions
|
|
@ -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.
|
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:
|
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
|
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
|
||||||
|
|
||||||
Exposing ports through the host container is [fiddly but doable](http://docs.docker.io/use/port_redirection/#binding-a-port-to-an-host-interface).
|
Exposing ports through the host container is [fiddly but doable](http://docs.docker.io/use/port_redirection/#binding-a-port-to-an-host-interface).
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue