{"action":"created","issue":{"url":"https://api.github.com/repos/docker/libcontainer/issues/323","labels_url":"https://api.github.com/repos/docker/libcontainer/issues/323/labels{/name}","comments_url":"https://api.github.com/repos/docker/libcontainer/issues/323/comments","events_url":"https://api.github.com/repos/docker/libcontainer/issues/323/events","html_url":"https://github.com/docker/libcontainer/issues/323","id":53877056,"number":323,"title":"loopback interface creation implemented by just returning nil in libcontainer/network/loopback.go?","user":{"login":"allencloud","id":9465626,"avatar_url":"https://avatars.githubusercontent.com/u/9465626?v=3","gravatar_id":"","url":"https://api.github.com/users/allencloud","html_url":"https://github.com/allencloud","followers_url":"https://api.github.com/users/allencloud/followers","following_url":"https://api.github.com/users/allencloud/following{/other_user}","gists_url":"https://api.github.com/users/allencloud/gists{/gist_id}","starred_url":"https://api.github.com/users/allencloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allencloud/subscriptions","organizations_url":"https://api.github.com/users/allencloud/orgs","repos_url":"https://api.github.com/users/allencloud/repos","events_url":"https://api.github.com/users/allencloud/events{/privacy}","received_events_url":"https://api.github.com/users/allencloud/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-09T15:11:08Z","updated_at":"2015-01-09T16:56:40Z","closed_at":null,"body":"Hi, all\r\n\r\nThe title is my confusion.\r\n\r\nNowadays I was reading source code of libcontainer. And I found that when starting Docker Container with bridge mode, libcontainer would create a loopback interface as well. But in libcontainer/network/loopback.go#L13-L15, the source code is like below:\r\n\r\nfunc (l *Loopback) Create(n *Network, nspid int, networkState *NetworkState) error {\r\n\treturn nil\r\n}\r\n\r\nJust return nul !\r\n\r\nBut when we tunnel into the newly started container, we can still see the loopback interface.\r\n\r\nThere must be something that made it.  And what is it? Now I cannot made it in theory.\r\n\r\nAnything helps.\r\n\r\nThanks in advance.\r\n\r\nAllen\r\nDaoCloud, China\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/docker/libcontainer/issues/comments/69362960","html_url":"https://github.com/docker/libcontainer/issues/323#issuecomment-69362960","issue_url":"https://api.github.com/repos/docker/libcontainer/issues/323","id":69362960,"user":{"login":"LK4D4","id":101445,"avatar_url":"https://avatars.githubusercontent.com/u/101445?v=3","gravatar_id":"","url":"https://api.github.com/users/LK4D4","html_url":"https://github.com/LK4D4","followers_url":"https://api.github.com/users/LK4D4/followers","following_url":"https://api.github.com/users/LK4D4/following{/other_user}","gists_url":"https://api.github.com/users/LK4D4/gists{/gist_id}","starred_url":"https://api.github.com/users/LK4D4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LK4D4/subscriptions","organizations_url":"https://api.github.com/users/LK4D4/orgs","repos_url":"https://api.github.com/users/LK4D4/repos","events_url":"https://api.github.com/users/LK4D4/events{/privacy}","received_events_url":"https://api.github.com/users/LK4D4/received_events","type":"User","site_admin":false},"created_at":"2015-01-09T16:56:40Z","updated_at":"2015-01-09T16:56:40Z","body":"@allencloud I believe that it creates on network namespace creation and `libcontainer` just `UP` it."}}