{"action":"created","issue":{"url":"https://api.github.com/repos/platinasystems/go/issues/101","repository_url":"https://api.github.com/repos/platinasystems/go","labels_url":"https://api.github.com/repos/platinasystems/go/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/platinasystems/go/issues/101/comments","events_url":"https://api.github.com/repos/platinasystems/go/issues/101/events","html_url":"https://github.com/platinasystems/go/issues/101","id":294741169,"number":101,"title":"Container namespace not getting removed after deleting container.","user":{"login":"amit-pandia","id":35250403,"avatar_url":"https://avatars3.githubusercontent.com/u/35250403?v=4","gravatar_id":"","url":"https://api.github.com/users/amit-pandia","html_url":"https://github.com/amit-pandia","followers_url":"https://api.github.com/users/amit-pandia/followers","following_url":"https://api.github.com/users/amit-pandia/following{/other_user}","gists_url":"https://api.github.com/users/amit-pandia/gists{/gist_id}","starred_url":"https://api.github.com/users/amit-pandia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amit-pandia/subscriptions","organizations_url":"https://api.github.com/users/amit-pandia/orgs","repos_url":"https://api.github.com/users/amit-pandia/repos","events_url":"https://api.github.com/users/amit-pandia/events{/privacy}","received_events_url":"https://api.github.com/users/amit-pandia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-06T12:26:58Z","updated_at":"2018-02-08T23:55:54Z","closed_at":null,"author_association":"NONE","body":"Hi Team.\r\nI created a container and moved physical interfaces into container namespace. Then, I moved those interfaces back to default namespaces. After this, I stopped the container and removed it. Even after removing the container, I can see that the container namespace exists. Moreover, this namespace still points to process ID of removed container which does not exists.\r\n\r\n\r\n## ------------- Steps to reproduce ----------------\r\n\r\n**#Checking docker containers - Found my container**\r\n```\r\namit@invader32:~$ sudo docker ps -a\r\nCONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES\r\n758832afe560        amit-platina:v1     \"/bin/bash\"         17 hours ago        Up 17 hours                             c1\r\n\r\n```\r\n**# Checking the interfaces present in container - Found 2 interfaces**\r\n```\r\namit@invader32:~$ docker exec -it c1 ifconfig -a\r\n[sudo] password for amit:\r\neth0      Link encap:Ethernet  HWaddr 02:42:ac:12:00:02\r\n          inet addr:172.18.0.2  Bcast:0.0.0.0  Mask:255.255.0.0\r\n          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1\r\n          RX packets:9 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:0\r\n          RX bytes:1006 (1.0 KB)  TX bytes:0 (0.0 B)\r\n\r\nlo        Link encap:Local Loopback\r\n          inet addr:127.0.0.1  Mask:255.0.0.0\r\n          UP LOOPBACK RUNNING  MTU:65536  Metric:1\r\n          RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:1000\r\n          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)\r\n\r\n```\r\n\r\n**# Checking namespace list - No namespaces found**\r\n`amit@invader32:~$ ip netns list\r\n`\r\n\r\n**# See contents of move_multiple_interfaces.sh - This script will move interfaces from default namespace to container namespace** \r\n```\r\namit@invader32:~$ cat move_multiple_interfaces.sh\r\ni=1\r\nwhile [ $i -ne 33 ]\r\ndo\r\nsudo sh docker_move.sh up c1 eth-$i-1\r\necho $i\r\ni=$((i+1))\r\ndone\r\n```\r\n**# Run the script to move multiple interfaces into container namespace - Interfaces moved successfully**\r\n`amit@invader32:~$ sudo sh move_multiple_interfaces.sh\r\n`\r\n\r\n**#Checking goes status - everything good.**\r\n```\r\namit@invader32:~$ sudo goes status\r\nGOES status\r\n======================\r\n  Mode            - TUNTAP\r\n  PCI             - OK\r\n  Check daemons   - OK\r\n  Check Redis     - OK\r\n  Check vnet      - OK\r\n\r\n```\r\n\r\n**# Checking namespace list - Found container namespace**\r\n```\r\namit@invader32:~$ ip netns list\r\nc1\r\n\r\n```\r\n**# Checking process id of c1 namespace - c1 is linked to process id 19402**\r\n```\r\namit@invader32:~$ ls -l /var/run/netns/\r\ntotal 0\r\nlrwxrwxrwx 1 root root 18 Feb  5 22:31 c1 -> /proc/19402/ns/net\r\n\r\n```\r\n\r\n**# Checking the interfaces present in container - Found newly moved interfaces in container + a new vnet interface**\r\n```\r\namit@invader32:~$ docker exec -it c1 ifconfig -a\r\neth0      Link encap:Ethernet  HWaddr 02:42:ac:12:00:02\r\n          inet addr:172.18.0.2  Bcast:0.0.0.0  Mask:255.255.0.0\r\n          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1\r\n          RX packets:9 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:0\r\n          RX bytes:1006 (1.0 KB)  TX bytes:0 (0.0 B)\r\n\r\neth-1-1   Link encap:Ethernet  HWaddr 50:18:4c:00:04:14\r\n          UP BROADCAST  MTU:9216  Metric:1\r\n          RX packets:59 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:9952 (9.9 KB)  TX bytes:1266 (1.2 KB)\r\n\r\neth-10-1  Link encap:Ethernet  HWaddr 50:18:4c:00:04:30\r\n          UP BROADCAST  MTU:9216  Metric:1\r\n          RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)\r\n\r\neth-11-1  Link encap:Ethernet  HWaddr 50:18:4c:00:04:3c\r\n          UP BROADCAST  MTU:9216  Metric:1\r\n          RX packets:59 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:9990 (9.9 KB)  TX bytes:1266 (1.2 KB)\r\n\r\neth-12-1  Link encap:Ethernet  HWaddr 50:18:4c:00:04:38\r\n          UP BROADCAST  MTU:9216  Metric:1\r\n          RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)\r\n\r\neth-13-1  Link encap:Ethernet  HWaddr 50:18:4c:00:04:44\r\n          UP BROADCAST  MTU:9216  Metric:1\r\n          RX packets:59 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:9990 (9.9 KB)  TX bytes:1266 (1.2 KB)\r\n\r\neth-14-1  Link encap:Ethernet  HWaddr 50:18:4c:00:04:40\r\n          UP BROADCAST  MTU:9216  Metric:1\r\n          RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)\r\n\r\neth-15-1  Link encap:Ethernet  HWaddr 50:18:4c:00:04:4c\r\n          UP BROADCAST  MTU:9216  Metric:1\r\n          RX packets:59 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:9990 (9.9 KB)  TX bytes:1266 (1.2 KB)\r\n\r\neth-16-1  Link encap:Ethernet  HWaddr 50:18:4c:00:04:48\r\n          UP BROADCAST  MTU:9216  Metric:1\r\n          RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)\r\n\r\neth-17-1  Link encap:Ethernet  HWaddr 50:18:4c:00:04:54\r\n          UP BROADCAST RUNNING  MTU:9216  Metric:1\r\n          RX packets:4 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:520 (520.0 B)  TX bytes:746 (746.0 B)\r\n\r\neth-18-1  Link encap:Ethernet  HWaddr 50:18:4c:00:04:50\r\n          UP BROADCAST  MTU:9216  Metric:1\r\n          RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)\r\n\r\neth-19-1  Link encap:Ethernet  HWaddr 50:18:4c:00:04:5c\r\n          UP BROADCAST RUNNING  MTU:9216  Metric:1\r\n          RX packets:4 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:520 (520.0 B)  TX bytes:746 (746.0 B)\r\n\r\neth-2-1   Link encap:Ethernet  HWaddr 50:18:4c:00:04:10\r\n          UP BROADCAST  MTU:9216  Metric:1\r\n          RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)\r\n\r\neth-20-1  Link encap:Ethernet  HWaddr 50:18:4c:00:04:58\r\n          UP BROADCAST  MTU:9216  Metric:1\r\n          RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)\r\n\r\neth-21-1  Link encap:Ethernet  HWaddr 50:18:4c:00:04:64\r\n          UP BROADCAST RUNNING  MTU:9216  Metric:1\r\n          RX packets:4 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:520 (520.0 B)  TX bytes:746 (746.0 B)\r\n\r\neth-22-1  Link encap:Ethernet  HWaddr 50:18:4c:00:04:60\r\n          UP BROADCAST  MTU:9216  Metric:1\r\n          RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)\r\n\r\neth-23-1  Link encap:Ethernet  HWaddr 50:18:4c:00:04:6c\r\n          UP BROADCAST RUNNING  MTU:9216  Metric:1\r\n          RX packets:4 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:520 (520.0 B)  TX bytes:746 (746.0 B)\r\n\r\neth-24-1  Link encap:Ethernet  HWaddr 50:18:4c:00:04:68\r\n          UP BROADCAST  MTU:9216  Metric:1\r\n          RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)\r\n\r\neth-25-1  Link encap:Ethernet  HWaddr 50:18:4c:00:04:74\r\n          UP BROADCAST RUNNING  MTU:9216  Metric:1\r\n          RX packets:4 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:520 (520.0 B)  TX bytes:746 (746.0 B)\r\n\r\neth-26-1  Link encap:Ethernet  HWaddr 50:18:4c:00:04:70\r\n          UP BROADCAST  MTU:9216  Metric:1\r\n          RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)\r\n\r\neth-27-1  Link encap:Ethernet  HWaddr 50:18:4c:00:04:7c\r\n          UP BROADCAST RUNNING  MTU:9216  Metric:1\r\n          RX packets:4 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:520 (520.0 B)  TX bytes:746 (746.0 B)\r\n\r\neth-28-1  Link encap:Ethernet  HWaddr 50:18:4c:00:04:78\r\n          UP BROADCAST  MTU:9216  Metric:1\r\n          RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)\r\n\r\neth-29-1  Link encap:Ethernet  HWaddr 50:18:4c:00:04:84\r\n          UP BROADCAST RUNNING  MTU:9216  Metric:1\r\n          RX packets:4 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:520 (520.0 B)  TX bytes:746 (746.0 B)\r\n\r\neth-3-1   Link encap:Ethernet  HWaddr 50:18:4c:00:04:1c\r\n          UP BROADCAST  MTU:9216  Metric:1\r\n          RX packets:59 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:9952 (9.9 KB)  TX bytes:1266 (1.2 KB)\r\n\r\neth-30-1  Link encap:Ethernet  HWaddr 50:18:4c:00:04:80\r\n          UP BROADCAST  MTU:9216  Metric:1\r\n          RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)\r\n\r\neth-31-1  Link encap:Ethernet  HWaddr 50:18:4c:00:04:8c\r\n          UP BROADCAST RUNNING  MTU:9216  Metric:1\r\n          RX packets:4 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:520 (520.0 B)  TX bytes:746 (746.0 B)\r\n\r\neth-32-1  Link encap:Ethernet  HWaddr 50:18:4c:00:04:88\r\n          UP BROADCAST  MTU:9216  Metric:1\r\n          RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)\r\n\r\neth-4-1   Link encap:Ethernet  HWaddr 50:18:4c:00:04:18\r\n          UP BROADCAST  MTU:9216  Metric:1\r\n          RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)\r\n\r\neth-5-1   Link encap:Ethernet  HWaddr 50:18:4c:00:04:24\r\n          UP BROADCAST  MTU:9216  Metric:1\r\n          RX packets:59 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:9952 (9.9 KB)  TX bytes:1266 (1.2 KB)\r\n\r\neth-6-1   Link encap:Ethernet  HWaddr 50:18:4c:00:04:20\r\n          UP BROADCAST  MTU:9216  Metric:1\r\n          RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)\r\n\r\neth-7-1   Link encap:Ethernet  HWaddr 50:18:4c:00:04:2c\r\n          UP BROADCAST  MTU:9216  Metric:1\r\n          RX packets:59 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:9952 (9.9 KB)  TX bytes:1266 (1.2 KB)\r\n\r\neth-8-1   Link encap:Ethernet  HWaddr 50:18:4c:00:04:28\r\n          UP BROADCAST  MTU:9216  Metric:1\r\n          RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)\r\n\r\neth-9-1   Link encap:Ethernet  HWaddr 50:18:4c:00:04:34\r\n          UP BROADCAST  MTU:9216  Metric:1\r\n          RX packets:59 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:9952 (9.9 KB)  TX bytes:1266 (1.2 KB)\r\n\r\nlo        Link encap:Local Loopback\r\n          inet addr:127.0.0.1  Mask:255.0.0.0\r\n          UP LOOPBACK RUNNING  MTU:65536  Metric:1\r\n          RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:1000\r\n          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)\r\n\r\nvnet      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00\r\n          POINTOPOINT  MTU:9216  Metric:1\r\n          RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)\r\n\r\n```\r\n\r\n**# See contents of move_multiple_interfaces.sh - This script will move interfaces from container namespace  to default namespace.**\r\n```\r\namit@invader32:~$ cat move_multiple_interfaces.sh\r\ni=1\r\nwhile [ $i -ne 33 ]\r\ndo\r\nsudo sh docker_move.sh down c1 eth-$i-1\r\necho $i\r\ni=$((i+1))\r\ndone\r\n\r\n```\r\n**# Run the script to move multiple interfaces from container namespace to default namespace - Interfaces moved successfully**\r\n`amit@invader32:~$ sudo sh move_multiple_interfaces.sh\r\n`\r\n\r\n**# Checking the interfaces present in container - Found 3 interfaces**\r\n```\r\namit@invader32:~$ docker exec -it c1 ifconfig -a\r\neth0      Link encap:Ethernet  HWaddr 02:42:ac:12:00:02\r\n          inet addr:172.18.0.2  Bcast:0.0.0.0  Mask:255.255.0.0\r\n          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1\r\n          RX packets:9 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:0\r\n          RX bytes:1006 (1.0 KB)  TX bytes:0 (0.0 B)\r\n\r\nlo        Link encap:Local Loopback\r\n          inet addr:127.0.0.1  Mask:255.0.0.0\r\n          UP LOOPBACK RUNNING  MTU:65536  Metric:1\r\n          RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:1000\r\n          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)\r\n\r\nvnet      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00\r\n          POINTOPOINT  MTU:9216  Metric:1\r\n          RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:5000\r\n          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)\r\n\r\n```\r\n**# Check goes status - everything good.**\r\n```\r\namit@invader32:~$ sudo goes status\r\nGOES status\r\n======================\r\n  Mode            - TUNTAP\r\n  PCI             - OK\r\n  Check daemons   - OK\r\n  Check Redis     - OK\r\n  Check vnet      - OK\r\n\r\n```\r\n**# check namespace list - c1 present after all interfaces are taken back.**\r\n```\r\namit@invader32:~$ ip netns list\r\nc1\r\n\r\n```\r\n**# stop container**\r\n```\r\namit@invader32:~$ sudo docker stop c1\r\nc1\r\n\r\n```\r\n**# remove container**\r\n```\r\namit@invader32:~$ sudo docker rm c1\r\nc1\r\n\r\n```\r\n**# check container list - no containers present**\r\n```\r\namit@invader32:~$ sudo docker ps -a\r\nCONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES\r\n\r\n```\r\n\r\n## ---------------- Below outputs proves the issue ---------------\r\n**# check namespace - Namespace still exists**\r\n```\r\namit@invader32:~$ ip netns list\r\nc1\r\n```\r\n_This namespace should have been removed but it still exists even after its container is removed._\r\n\r\n**#Check namespace - namespace is linked to process id 19402**\r\n```\r\namit@invader32:~$ ls -l /var/run/netns/\r\ntotal 0\r\nlrwxrwxrwx 1 root root 18 Feb  5 22:31 c1 -> /proc/19402/ns/net\r\n```\r\nc1 is pointing to a process which does not exists.\r\n\r\n**#Look for process id of deleted container- the process id not available (expected)**\r\n`amit@invader32:/proc$ ls | grep \"19420\"\r\n`\r\n\r\n@fszyang "},"comment":{"url":"https://api.github.com/repos/platinasystems/go/issues/comments/364289347","html_url":"https://github.com/platinasystems/go/issues/101#issuecomment-364289347","issue_url":"https://api.github.com/repos/platinasystems/go/issues/101","id":364289347,"user":{"login":"stigt","id":268704,"avatar_url":"https://avatars3.githubusercontent.com/u/268704?v=4","gravatar_id":"","url":"https://api.github.com/users/stigt","html_url":"https://github.com/stigt","followers_url":"https://api.github.com/users/stigt/followers","following_url":"https://api.github.com/users/stigt/following{/other_user}","gists_url":"https://api.github.com/users/stigt/gists{/gist_id}","starred_url":"https://api.github.com/users/stigt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stigt/subscriptions","organizations_url":"https://api.github.com/users/stigt/orgs","repos_url":"https://api.github.com/users/stigt/repos","events_url":"https://api.github.com/users/stigt/events{/privacy}","received_events_url":"https://api.github.com/users/stigt/received_events","type":"User","site_admin":false},"created_at":"2018-02-08T23:55:53Z","updated_at":"2018-02-08T23:55:53Z","author_association":"COLLABORATOR","body":"I believe this issue can be closed since it is up to the script calling docker-move.sh to clean up."}}
{"actor":{"display_login":"stigt"}}