{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/19717","labels_url":"https://api.github.com/repos/docker/docker/issues/19717/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/19717/comments","events_url":"https://api.github.com/repos/docker/docker/issues/19717/events","html_url":"https://github.com/docker/docker/pull/19717","id":128815593,"number":19717,"title":"Daemon: do GetRWLayer after checking if container support the current graph driver","user":{"login":"coolljt0725","id":8232360,"avatar_url":"https://avatars.githubusercontent.com/u/8232360?v=3","gravatar_id":"","url":"https://api.github.com/users/coolljt0725","html_url":"https://github.com/coolljt0725","followers_url":"https://api.github.com/users/coolljt0725/followers","following_url":"https://api.github.com/users/coolljt0725/following{/other_user}","gists_url":"https://api.github.com/users/coolljt0725/gists{/gist_id}","starred_url":"https://api.github.com/users/coolljt0725/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coolljt0725/subscriptions","organizations_url":"https://api.github.com/users/coolljt0725/orgs","repos_url":"https://api.github.com/users/coolljt0725/repos","events_url":"https://api.github.com/users/coolljt0725/events{/privacy}","received_events_url":"https://api.github.com/users/coolljt0725/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":null,"comments":1,"created_at":"2016-01-26T13:09:21Z","updated_at":"2016-01-26T21:49:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/19717","html_url":"https://github.com/docker/docker/pull/19717","diff_url":"https://github.com/docker/docker/pull/19717.diff","patch_url":"https://github.com/docker/docker/pull/19717.patch"},"body":"we should check if the container support the current graph driver and\r\nthen do `GetRWLayer` since `RWLayer` is relate to graph driver.\r\nor it will have a error message:\r\n<pre><code>ERRO[0002] Failed to load container mount 815c216264885c4165b408f8eae2c05e39133226b27dba3b477eaf2f77028e48: mount does not exist\r\nERRO[0002] Failed to load container mount 82c24436b25fcd28109b6b34e527c8519e7689f07bfb6c175132d9b37c02d129: mount does not exist\r\nERRO[0002] Failed to load container mount 83b1059609bb3b22629c9ee0ecc606717d42fe924e294d1125aee6ff9c7f9668: mount does not exist\r\nERRO[0002] Failed to load container mount 86699280fe990852785be70662434276f9af554d3af82957822b17095a44171d: mount does not exist\r\nERRO[0002] Failed to load container mount 88a0f380d4bba71c2464160d167e5436f1fb4e1b73cb433be6e4ed0e5c6f0daf: mount does not exist\r\nERRO[0002] Failed to load container mount 898821093dea9702677104161626e7078185675211e44f4ad21e67eeb2b7d923: mount does not exist\r\nERRO[0002] Failed to load container mount 8a1152a653c82e6cac71809eea543807583efdfe2d131541488a9ed53974f54e: mount does not exist\r\nERRO[0002] Failed to load container mount 8a74abcee4ab477fb8b6fff0865408118b0cfc23185adf48e5c68d2a741bb104: mount does not exist\r\nERRO[0002] Failed to load container mount 8bd128d06efe730fb1a58b407c3464767b386d1cf49f3f5d393aead86a4ab352: mount does not exist\r\nERRO[0002] Failed to load container mount 8bfc37a3465c7a78a95c1f62d44f1d211872291654a22b680d6bc24a7187b80c: mount does not exist\r\nERRO[0002] Failed to load container mount 8c9c1d9355c51d6a709ef682fde772701a28ccfe29edd5466546eed0cdff561f: mount does not exist\r\nERRO[0002] Failed to load container mount 8ecb60792ba44f074bfc13e6f22e0b65419f34164a48b87b182ef15cb2c3e443: mount does not exist</code></pre>\r\n\r\nThe previous version is like this\r\n<pre><code>DEBU[0001] Cannot load container 288b0571b235b31ceb9df357e38ea873610d4561fe83937e5fb97c7d0b3e7575 because it was created with another graph driver.\r\nDEBU[0001] Cannot load container 2bfc1d0771d030483add60d1e74e901c9104c174d5b8e01004c18af1f181987f because it was created with another graph driver.\r\nDEBU[0001] Cannot load container 2d0515ded3f3a740a53a655ccf6dfb725b4febd5d6b0e05b1d320bdee1c5785c because it was created with another graph driver.\r\nDEBU[0001] Cannot load container 2dc8cb928906c72bfac72de5b37a3442031e68fc27884f0117732bdbd6a05905 because it was created with another graph driver.\r\nDEBU[0001] Cannot load container 2f78028ab4d4fd0891de20e94176602efb5d593c23da5c07ad843746fc31c76c because it was created with another graph driver.\r\nDEBU[0001] Cannot load container 2fe33736bc3610323a1da4f1ed48be4d118d246828dc80259a6df6e2b7c1e225 because it was created with another graph driver.\r\nDEBU[0001] Cannot load container 3508f518cc23d60d8e43faab4dc27b511fa4dab1edba8d21a53fd560f3057c33 because it was created with another graph driver.\r\nDEBU[0001] Cannot load container 36329496d9bc7c12eee6d13ca8257278768a6cc215a36957719acf0df6fd6336 because it was created with another graph driver.\r\nDEBU[0001] Cannot load container 37da597875a06f012cfeb607ca7aa64e23aff7f306b67f7c971aea41a3338b03 because it was created with another graph driver.\r\n</code></pre>\r\nSigned-off-by: Lei Jitang <leijitang@huawei.com>"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/175248208","html_url":"https://github.com/docker/docker/pull/19717#issuecomment-175248208","issue_url":"https://api.github.com/repos/docker/docker/issues/19717","id":175248208,"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},"created_at":"2016-01-26T21:49:16Z","updated_at":"2016-01-26T21:49:16Z","body":"This makes much more sense, thank you!\r\n\r\nLGTM"}}