Skip to content

Instantly share code, notes, and snippets.

@jamesattard
Last active March 30, 2017 08:53
Show Gist options
  • Select an option

  • Save jamesattard/6f0fa4bda1f5ecab7b82c25d9c837746 to your computer and use it in GitHub Desktop.

Select an option

Save jamesattard/6f0fa4bda1f5ecab7b82c25d9c837746 to your computer and use it in GitHub Desktop.
$ docker inspect containerid
...
"Mounts": [
{
"Type": "bind",
"Source": "/var/mysql",
"Destination": "/mysql_data",
"Mode": "rw",
"RW": true,
"Propagation": "rprivate"
}
]
...
# Alternatively:
$ docker inspect -f '{{ .Mounts }}' 5776d1849024
[{bind /var/mysql /mysql_data rw true rprivate}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment