{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/13711","labels_url":"https://api.github.com/repos/docker/docker/issues/13711/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/13711/comments","events_url":"https://api.github.com/repos/docker/docker/issues/13711/events","html_url":"https://github.com/docker/docker/pull/13711","id":84732553,"number":13711,"title":"Expose new mount points structs in inspect.","user":{"login":"calavera","id":1050,"avatar_url":"https://avatars.githubusercontent.com/u/1050?v=3","gravatar_id":"","url":"https://api.github.com/users/calavera","html_url":"https://github.com/calavera","followers_url":"https://api.github.com/users/calavera/followers","following_url":"https://api.github.com/users/calavera/following{/other_user}","gists_url":"https://api.github.com/users/calavera/gists{/gist_id}","starred_url":"https://api.github.com/users/calavera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calavera/subscriptions","organizations_url":"https://api.github.com/users/calavera/orgs","repos_url":"https://api.github.com/users/calavera/repos","events_url":"https://api.github.com/users/calavera/events{/privacy}","received_events_url":"https://api.github.com/users/calavera/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/status/2-code-review","name":"status/2-code-review","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/docker/docker/milestones/39","html_url":"https://github.com/docker/docker/milestones/1.8.0","labels_url":"https://api.github.com/repos/docker/docker/milestones/39/labels","id":1151952,"number":39,"title":"1.8.0","description":"","creator":{"login":"thaJeztah","id":1804568,"avatar_url":"https://avatars.githubusercontent.com/u/1804568?v=3","gravatar_id":"","url":"https://api.github.com/users/thaJeztah","html_url":"https://github.com/thaJeztah","followers_url":"https://api.github.com/users/thaJeztah/followers","following_url":"https://api.github.com/users/thaJeztah/following{/other_user}","gists_url":"https://api.github.com/users/thaJeztah/gists{/gist_id}","starred_url":"https://api.github.com/users/thaJeztah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaJeztah/subscriptions","organizations_url":"https://api.github.com/users/thaJeztah/orgs","repos_url":"https://api.github.com/users/thaJeztah/repos","events_url":"https://api.github.com/users/thaJeztah/events{/privacy}","received_events_url":"https://api.github.com/users/thaJeztah/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":33,"state":"open","created_at":"2015-06-05T19:27:06Z","updated_at":"2015-07-21T23:59:45Z","due_on":"2015-08-09T22:00:00Z","closed_at":null},"comments":26,"created_at":"2015-06-03T19:24:22Z","updated_at":"2015-07-22T02:59:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/13711","html_url":"https://github.com/docker/docker/pull/13711","diff_url":"https://github.com/docker/docker/pull/13711.diff","patch_url":"https://github.com/docker/docker/pull/13711.patch"},"body":"Docker Inspect presents the volume information in two different hashes. There are a couple of issues with this approach:\r\n\r\n1. It's hard to parse, because if you want to have the full information for a volume you have to parse the output twice, one to look at the sources information and another time to look at the permissions information.\r\n2. It cannot display any more information besides what's in it now, because it's designed with a map of strings and a map of boolean. The amount of information for a mount point is growing with named volumes, external drivers and so on, and we need to show this information.\r\n\r\nThe new approach exposes the full mount point structure as a single element in the output. So you only need to parse a single field to get the information for a specific volume, and you get everything related to that volume.\r\n\r\n**Before this patch:**\r\n\r\n```json\r\n{\r\n  \"Volumes\": {\"/vol1\": \"/vol1\"},\r\n  \"VolumesRW\": {\"/vol1\": true}\r\n}\r\n```\r\n\r\n**After this patch:**\r\n\r\n```json\r\n{\r\n  \"Mounts\": [\r\n     {\r\n        \"Source\": \"/vol1\",\r\n        \"Destination\": \"/vol1\",\r\n        \"Mode\": \"rw,Z\",\r\n        \"RW\": true\r\n     }\r\n  ]\r\n}\r\n```\r\n\r\nTODO:\r\n\r\n- [x] Tests\r\n- [x] Docs\r\n\r\nSigned-off-by: David Calavera <david.calavera@gmail.com>"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/123548255","html_url":"https://github.com/docker/docker/pull/13711#issuecomment-123548255","issue_url":"https://api.github.com/repos/docker/docker/issues/13711","id":123548255,"user":{"login":"jfrazelle","id":1445228,"avatar_url":"https://avatars.githubusercontent.com/u/1445228?v=3","gravatar_id":"","url":"https://api.github.com/users/jfrazelle","html_url":"https://github.com/jfrazelle","followers_url":"https://api.github.com/users/jfrazelle/followers","following_url":"https://api.github.com/users/jfrazelle/following{/other_user}","gists_url":"https://api.github.com/users/jfrazelle/gists{/gist_id}","starred_url":"https://api.github.com/users/jfrazelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfrazelle/subscriptions","organizations_url":"https://api.github.com/users/jfrazelle/orgs","repos_url":"https://api.github.com/users/jfrazelle/repos","events_url":"https://api.github.com/users/jfrazelle/events{/privacy}","received_events_url":"https://api.github.com/users/jfrazelle/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T02:59:50Z","updated_at":"2015-07-22T02:59:50Z","body":"LGTM, @thaJeztah good with you?"}}