{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/11281","labels_url":"https://api.github.com/repos/docker/docker/issues/11281/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/11281/comments","events_url":"https://api.github.com/repos/docker/docker/issues/11281/events","html_url":"https://github.com/docker/docker/pull/11281","id":60493337,"number":11281,"title":"Fix error from daemon no such image even when the image exist","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/needs-code-review","name":"status/needs-code-review","color":"F56991"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-03-10T12:41:27Z","updated_at":"2015-03-27T15:47:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/11281","html_url":"https://github.com/docker/docker/pull/11281","diff_url":"https://github.com/docker/docker/pull/11281.diff","patch_url":"https://github.com/docker/docker/pull/11281.patch"},"body":"Signed-off-by: Lei Jitang <leijitang@huawei.com>\r\nThere is a bug when `docker run  --ipc` use a container is not exists.\r\nReproduce:\r\n`docker run -ti --rm --ipc=container:test busybox`   the `test` is a not exist container\r\nthe output is\r\n<pre><code>Unable to find image 'busybox:latest' locally\r\nlatest: Pulling from busybox\r\n511136ea3c5a: Already exists\r\ndf7546f9f060: Already exists\r\nea13149945cb: Already exists\r\n4986bf8c1536: Already exists\r\nStatus: Image is up to date for busybox:latest\r\nFATA[0005] Error response from daemon: No such image: busybox (tag: latest)</code></pre>\r\nThis is completely wrong, image `busybox` is  absolutely exist locally\r\n<pre><code>[l00284783@localhost docker]$ docker images busybox\r\nREPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE\r\nbusybox             latest              4986bf8c1536        9 weeks ago         2.433 MB\r\n</code></pre>\r\n\r\nThe correct output should be `No such id: test`\r\n\r\nThe bug is because https://github.com/docker/docker/blob/master/daemon/create.go#L48  will call https://github.com/docker/docker/blob/master/daemon/create.go#L133  `GenerateSecurityOpt(ipcMode runconfig.IpcMode, pidMode runconfig.PidMode)` and this function will check if the ipc share container is exists or not, and if not exists, it will return a error `no such id: test` , with this error message https://github.com/docker/docker/blob/master/daemon/create.go#L50 will think it was a no such image error and then pull the image.\r\n\r\nI think this PR will fix this\r\n\r\nping @crosbymichael  @jfrazelle  @estesp  @cpuguy83 \r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/86981347","html_url":"https://github.com/docker/docker/pull/11281#issuecomment-86981347","issue_url":"https://api.github.com/repos/docker/docker/issues/11281","id":86981347,"user":{"login":"LK4D4","id":101445,"avatar_url":"https://avatars.githubusercontent.com/u/101445?v=3","gravatar_id":"","url":"https://api.github.com/users/LK4D4","html_url":"https://github.com/LK4D4","followers_url":"https://api.github.com/users/LK4D4/followers","following_url":"https://api.github.com/users/LK4D4/following{/other_user}","gists_url":"https://api.github.com/users/LK4D4/gists{/gist_id}","starred_url":"https://api.github.com/users/LK4D4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LK4D4/subscriptions","organizations_url":"https://api.github.com/users/LK4D4/orgs","repos_url":"https://api.github.com/users/LK4D4/repos","events_url":"https://api.github.com/users/LK4D4/events{/privacy}","received_events_url":"https://api.github.com/users/LK4D4/received_events","type":"User","site_admin":false},"created_at":"2015-03-27T15:47:12Z","updated_at":"2015-03-27T15:47:12Z","body":"@coolljt0725 Sorry, missed notifications. Can you rebase?"}}