{"action":"created","issue":{"url":"https://api.github.com/repos/projectcalico/calico-containers/issues/896","repository_url":"https://api.github.com/repos/projectcalico/calico-containers","labels_url":"https://api.github.com/repos/projectcalico/calico-containers/issues/896/labels{/name}","comments_url":"https://api.github.com/repos/projectcalico/calico-containers/issues/896/comments","events_url":"https://api.github.com/repos/projectcalico/calico-containers/issues/896/events","html_url":"https://github.com/projectcalico/calico-containers/issues/896","id":143577692,"number":896,"title":"How to get rid of orphaned endpoints?","user":{"login":"ThomasLohner","id":3153119,"avatar_url":"https://avatars.githubusercontent.com/u/3153119?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasLohner","html_url":"https://github.com/ThomasLohner","followers_url":"https://api.github.com/users/ThomasLohner/followers","following_url":"https://api.github.com/users/ThomasLohner/following{/other_user}","gists_url":"https://api.github.com/users/ThomasLohner/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasLohner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasLohner/subscriptions","organizations_url":"https://api.github.com/users/ThomasLohner/orgs","repos_url":"https://api.github.com/users/ThomasLohner/repos","events_url":"https://api.github.com/users/ThomasLohner/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasLohner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-03-25T19:34:06Z","updated_at":"2016-04-14T09:20:32Z","closed_at":null,"body":"If i understand correctly this was fixed in #507 but i can't figure out how to do it.\r\n\r\n```\r\n$ calicoctl endpoint show --detailed\r\n+------------------------------------------------------------------+---------------+\r\n|                           Endpoint ID                            |   Addresses   | \r\n+------------------------------------------------------------------+---------------+\r\n| 788df8495c7f52c81b097764ee032778f513c74d8b46d6116bb8ec88e4967582 |  10.1.1.1/32  |\r\n| 14e8c5c1b2a683d72eb835b59abfd37f64504603a12a3ec01e61cf7979704bca |  10.1.1.1/32  |\r\n| 906e9f110084131d2bee6126bdbdf75a1b3ba602f2d508369329adc3f0175560 |  10.1.1.1/32  |\r\n| b1fd0c837fda7468e914353a6d95b60ed5f20f66df8f83221bfe6120b0a3216b |  10.1.1.1/32  |\r\n| d0f6c23fe896148eedf2ef13ba98c0254195716b1f5ad653dfb87334502c7a3b |  10.1.1.1/32  |\r\n+----------------------+-----------------+-------------+----------------------------\r\n```\r\nThe first endpoint belongs to a running container. All of the others don't even have existing containers anymore. I wonder why they weren't removed in the first place. I always did `docker rm ...`\r\n\r\nAnyways, i tried to remove them like this:\r\n```\r\n$ sudo calicoctl container remove 14e8c5c1b2a683d72eb835b59abfd37f64504603a12a3ec01e61cf7979704bca\r\n\r\nContainer 14e8c5c1b2a683d72eb835b59abfd37f64504603a12a3ec01e61cf7979704bca was not found.\r\n```\r\n\r\nAny hints how to fix this?\r\n\r\n---\r\nMy Setup:\r\n```\r\n$ calicoctl version\r\n0.17.0-dev\r\n\r\n$ docker ps\r\nCONTAINER ID        IMAGE                           COMMAND                  CREATED             STATUS              PORTS               NAMES\r\n5642a44d93e7        calico/node-libnetwork:latest   \"./start.sh\"             5 days ago          Up 5 days                               calico-libnetwork\r\n228e1ee4a80b        calico/node:latest              \"/sbin/start_runit\"      5 days ago          Up 5 days                               calico-node\r\n```"},"comment":{"url":"https://api.github.com/repos/projectcalico/calico-containers/issues/comments/209844038","html_url":"https://github.com/projectcalico/calico-containers/issues/896#issuecomment-209844038","issue_url":"https://api.github.com/repos/projectcalico/calico-containers/issues/896","id":209844038,"user":{"login":"frostynova","id":1219822,"avatar_url":"https://avatars.githubusercontent.com/u/1219822?v=3","gravatar_id":"","url":"https://api.github.com/users/frostynova","html_url":"https://github.com/frostynova","followers_url":"https://api.github.com/users/frostynova/followers","following_url":"https://api.github.com/users/frostynova/following{/other_user}","gists_url":"https://api.github.com/users/frostynova/gists{/gist_id}","starred_url":"https://api.github.com/users/frostynova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frostynova/subscriptions","organizations_url":"https://api.github.com/users/frostynova/orgs","repos_url":"https://api.github.com/users/frostynova/repos","events_url":"https://api.github.com/users/frostynova/events{/privacy}","received_events_url":"https://api.github.com/users/frostynova/received_events","type":"User","site_admin":false},"created_at":"2016-04-14T09:20:32Z","updated_at":"2016-04-14T09:20:32Z","body":"We also met this problem\r\n\r\nIt occurs when docker daemon restarted, then the old endpoint become a dead one, neither libnetwork or calico can clean it.\r\n\r\nI report more details on: https://github.com/projectcalico/libnetwork-plugin/issues/49"}}