{"action":"closed","issue":{"url":"https://api.github.com/repos/docker/docker/issues/9311","labels_url":"https://api.github.com/repos/docker/docker/issues/9311/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/9311/comments","events_url":"https://api.github.com/repos/docker/docker/issues/9311/events","html_url":"https://github.com/docker/docker/issues/9311","id":49907395,"number":9311,"title":"\"no such container\" when name is ambiguous","user":{"login":"bboreham","id":8125524,"avatar_url":"https://avatars.githubusercontent.com/u/8125524?v=3","gravatar_id":"","url":"https://api.github.com/users/bboreham","html_url":"https://github.com/bboreham","followers_url":"https://api.github.com/users/bboreham/followers","following_url":"https://api.github.com/users/bboreham/following{/other_user}","gists_url":"https://api.github.com/users/bboreham/gists{/gist_id}","starred_url":"https://api.github.com/users/bboreham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bboreham/subscriptions","organizations_url":"https://api.github.com/users/bboreham/orgs","repos_url":"https://api.github.com/users/bboreham/repos","events_url":"https://api.github.com/users/bboreham/events{/privacy}","received_events_url":"https://api.github.com/users/bboreham/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2014-11-24T16:07:14Z","updated_at":"2015-02-06T22:01:42Z","closed_at":"2015-02-06T22:01:42Z","body":"I was surprised to get this:\r\n\r\n````\r\nbryan@ubuntu1$ sudo docker attach 450\r\n2014/11/24 15:55:13 Error response from daemon: No such container: 450\r\nbryan@ubuntu1$ sudo docker ps\r\nCONTAINER ID        IMAGE                    COMMAND                CREATED              STATUS              PORTS                                            NAMES\r\n450a904a2169        ubuntu:14.04             \"/bin/bash\"            About a minute ago   Up About a minute                                                    kickass_carson      \r\n````\r\n\r\nquickly realised the problem is that '450' is ambiguous, because on my machine there is another container `45054152d0e2` that exited 7 weeks ago.  Still, it would be nice if Docker told me this."}}