{"action":"closed","issue":{"url":"https://api.github.com/repos/tonistiigi/dnsdock/issues/22","repository_url":"https://api.github.com/repos/tonistiigi/dnsdock","labels_url":"https://api.github.com/repos/tonistiigi/dnsdock/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/tonistiigi/dnsdock/issues/22/comments","events_url":"https://api.github.com/repos/tonistiigi/dnsdock/issues/22/events","html_url":"https://github.com/tonistiigi/dnsdock/issues/22","id":91000972,"number":22,"title":"Renaming containers doesn't update dnsdock names","user":{"login":"kgutwin","id":6315798,"avatar_url":"https://avatars.githubusercontent.com/u/6315798?v=3","gravatar_id":"","url":"https://api.github.com/users/kgutwin","html_url":"https://github.com/kgutwin","followers_url":"https://api.github.com/users/kgutwin/followers","following_url":"https://api.github.com/users/kgutwin/following{/other_user}","gists_url":"https://api.github.com/users/kgutwin/gists{/gist_id}","starred_url":"https://api.github.com/users/kgutwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kgutwin/subscriptions","organizations_url":"https://api.github.com/users/kgutwin/orgs","repos_url":"https://api.github.com/users/kgutwin/repos","events_url":"https://api.github.com/users/kgutwin/events{/privacy}","received_events_url":"https://api.github.com/users/kgutwin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tonistiigi/dnsdock/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2015-06-25T15:46:14Z","updated_at":"2016-07-16T09:40:45Z","closed_at":"2016-07-16T09:40:45Z","body":"Once a container is launched with a particular name, it sticks until the container is removed:\r\n```\r\n$ docker run --name one -d httpd\r\nee030eb30dc69e04eade85dd535707b8d768fc42dd4524bcb37721873c1b4868\r\n$ docker logs dnsdock 2>&1 | grep ee03\r\n2015/06/25 15:41:11 Added service: ee030eb30dc69e04eade85dd535707b8d768fc42dd4524bcb37721873c1b4868 {one httpd 172.17.0.155 -1 []}\r\n$ host one.httpd.dnsdock\r\none.httpd.dnsdock has address 172.17.0.155\r\n$ docker rename one two\r\n$ docker logs dnsdock 2>&1 | grep ee03\r\n2015/06/25 15:41:11 Added service: ee030eb30dc69e04eade85dd535707b8d768fc42dd4524bcb37721873c1b4868 {one httpd 172.17.0.155 -1 []}\r\n$ host two.httpd.dnsdock\r\nHost two.httpd.dnsdock not found: 3(NXDOMAIN)\r\n$ host one.httpd.dnsdock\r\none.httpd.dnsdock has address 172.17.0.155\r\n```\r\nPerhaps this is because Docker's events API doesn't report on name changes?"}}
{"actor":{"display_login":"aacebedo"}}