{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/3224","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/3224/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/3224/comments","events_url":"https://api.github.com/repos/docker/docker/issues/3224/events","html_url":"https://github.com/docker/docker/issues/3224","id":24323662,"number":3224,"title":"Port already in use error when running a container","user":{"login":"windowsrefund","id":512222,"avatar_url":"https://avatars.githubusercontent.com/u/512222?v=3","gravatar_id":"","url":"https://api.github.com/users/windowsrefund","html_url":"https://github.com/windowsrefund","followers_url":"https://api.github.com/users/windowsrefund/followers","following_url":"https://api.github.com/users/windowsrefund/following{/other_user}","gists_url":"https://api.github.com/users/windowsrefund/gists{/gist_id}","starred_url":"https://api.github.com/users/windowsrefund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/windowsrefund/subscriptions","organizations_url":"https://api.github.com/users/windowsrefund/orgs","repos_url":"https://api.github.com/users/windowsrefund/repos","events_url":"https://api.github.com/users/windowsrefund/events{/privacy}","received_events_url":"https://api.github.com/users/windowsrefund/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2013-12-16T00:46:37Z","updated_at":"2016-10-10T10:52:01Z","closed_at":"2013-12-21T08:03:08Z","body":"I started seeing this behavior after upgrading from 0.6.6 to 0.7.1\r\n\r\nSteps to reproduce:\r\n1. Run a container with -p\r\n2. Stop container\r\n3. Remove container\r\n4. Repeat step 1\r\n\r\nStep 4 will fail with \"Port already in use\" error corresponding to whatever was used with -p\r\n\r\nHere's some screen-scrape love:\r\n\r\nrelevs09:~/build >>> sudo docker ps -a\r\nCONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES\r\n\r\nrelevs09:~/build >>> sudo netstat -lntp\r\nActive Internet connections (only servers)\r\nProto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name\r\ntcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1905/sshd       \r\ntcp6       0      0 :::22                   :::*                    LISTEN      1905/sshd       \r\n\r\nrelevs09:~/build >>> sudo docker run -d -name dns_master -h foosrv0 -dns 127.0.0.1 -p 53:53/udp stackmachine.com/windowsrefund/foo:dns_master\r\n580fb786794f21c32160ae2b66dd087fbaf8db0ad9e4f8888ec957fd99c9be39\r\n\r\nrelevs09:~/build >>> sudo docker stop dns_master\r\ndns_master\r\n\r\nrelevs09:~/build >>> sudo docker rm dns_master\r\ndns_master\r\n\r\nrelevs09:~/build >>> sudo docker ps -a\r\nCONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES\r\n\r\nrelevs09:~/build >>> sudo docker run -d -name dns_master -h foosrv0 -dns 127.0.0.1 -p 53:53/udp stackmachine.com/windowsrefund/foo:dns_master\r\nba9864d582689637dd87aeace7478b8c7200d209102b8cb6d54702059eeddc5a\r\n2013/12/16 00:41:13 Error: start: Cannot start container ba9864d582689637dd87aeace7478b8c7200d209102b8cb6d54702059eeddc5a: Port already in use: 53\r\n\r\nrelevs09:~/build >>> sudo netstat -lntp\r\nActive Internet connections (only servers)\r\nProto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name\r\ntcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1905/sshd       \r\ntcp6       0      0 :::22                   :::*                    LISTEN      1905/sshd       \r\n\r\nrelevs09:~/build >>>"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/252585715","html_url":"https://github.com/docker/docker/issues/3224#issuecomment-252585715","issue_url":"https://api.github.com/repos/docker/docker/issues/3224","id":252585715,"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":"2016-10-10T10:52:01Z","updated_at":"2016-10-10T10:52:01Z","body":"@drlukeangel your issue cannot be the same as the issue reported here originally; this issue is almost three years old, and the networking stack in docker has been completely replaced. It's possible you get a similar _error_, but the _cause_ cannot be the same.\r\n\r\nThe original issue reported here was resolved in docker 0.7.2 if anyone still sees this issue, please open a new issue, or search for an existing issue that's still opened and reported with the version you're using.\r\n\r\nI'm locking this issue to prevent it from collecting unrelated reports."}}
{"actor":{"display_login":"thaJeztah"}}