Skip to content

Commit

Permalink
Merge pull request moby#11688 from afewremarks/master
Browse files Browse the repository at this point in the history
RE: Issue moby#6114.  Updated docs to reflect docker inpsect for volumes
  • Loading branch information
moxiegirl committed Mar 24, 2015
2 parents 9d7f581 + ef0275c commit d827b4d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/sources/userguide/dockervolumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,27 @@ This will create a new volume inside a container at `/webapp`.
> You can also use the `VOLUME` instruction in a `Dockerfile` to add one or
> more new volumes to any container created from that image.
### Locating a volume

You can locate the volume on the host by utilizing the 'docker inspect' command.

$ docker inspect web

The output will provide details on the container configurations including the
volumes. The output should look something similar to the following:

...
"Volumes": {
"/webapp": "/var/lib/docker/volumes/fac362...80535"
},
"VolumesRW": {
"/webapp": true
}
...

You will notice in the above 'Volumes' is specifying the location on the host and
'VolumesRW' is specifying that the volume is read/write.

### Mount a Host Directory as a Data Volume

In addition to creating a volume using the `-v` flag you can also mount a
Expand Down

0 comments on commit d827b4d

Please sign in to comment.