{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/15472","labels_url":"https://api.github.com/repos/docker/docker/issues/15472/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/15472/comments","events_url":"https://api.github.com/repos/docker/docker/issues/15472/events","html_url":"https://github.com/docker/docker/pull/15472","id":100215751,"number":15472,"title":"Fix docker ps truncate long image name","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/3-docs-review","name":"status/3-docs-review","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":38,"created_at":"2015-08-11T03:08:38Z","updated_at":"2015-10-02T07:58:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/15472","html_url":"https://github.com/docker/docker/pull/15472","diff_url":"https://github.com/docker/docker/pull/15472.diff","patch_url":"https://github.com/docker/docker/pull/15472.patch"},"body":"Signed-off-by: Lei Jitang <leijitang@huawei.com>\r\n\r\n#15421 truncate image name to 12, this make some long\r\nimage name can't display the full and make user confused.\r\nfor example\r\n`docker run -ti ubuntu:14.04.2`\r\n<pre><code>lei@ubuntu:~$ docker ps\r\nCONTAINER ID        IMAGE               COMMAND             CREATED              STATUS              PORTS               NAMES\r\n68727a822654        ubuntu:14.04        \"/bin/bash\"         About a minute ago   Up About a minute                       trusting_bhaskara</code></pre>\r\nWe run a image `ubuntu:14.04.2` but docker ps show `ubuntu:14.04`. \r\n\r\n`docker run -ti --rm --privileged dockercore/docker bash`\r\n<pre><code>lei@ubuntu:~$ docker ps\r\nCONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES\r\ndbdd393ecbbe        dockercore/d        \"hack/dind bash\"    49 seconds ago      Up 49 seconds                           angry_raman\r\n</code></pre>\r\nWe use image `dockercore/docker`, but docker ps show `dockercore/d`, it's really weird.\r\n\r\nThis patch fix this by returning the full ID if the image name is a ID, I think this is more\r\nmake sense, since `docker ps` has a option `--no-trunc`. The option `--no-trunc` should\r\ndisplay the full id of the image.\r\n\r\nFixes #16663"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/144949807","html_url":"https://github.com/docker/docker/pull/15472#issuecomment-144949807","issue_url":"https://api.github.com/repos/docker/docker/issues/15472","id":144949807,"user":{"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},"created_at":"2015-10-02T07:58:49Z","updated_at":"2015-10-02T07:58:49Z","body":"@coolljt0725 sorry, we missed that yesterday, but can you add this to the API changes as well? https://github.com/docker/docker/blob/master/docs/reference/api/docker_remote_api.md#v121-api-changes. We try to update those changes as part of the PR.\r\n"}}