{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/4329","labels_url":"https://api.github.com/repos/docker/docker/issues/4329/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/4329/comments","events_url":"https://api.github.com/repos/docker/docker/issues/4329/events","html_url":"https://github.com/docker/docker/issues/4329","id":28240413,"number":4329,"title":"VBox & Docker NAT/Bridge issues","user":{"login":"RickMoynihan","id":17060,"avatar_url":"https://avatars.githubusercontent.com/u/17060?v=3","gravatar_id":"","url":"https://api.github.com/users/RickMoynihan","html_url":"https://github.com/RickMoynihan","followers_url":"https://api.github.com/users/RickMoynihan/followers","following_url":"https://api.github.com/users/RickMoynihan/following{/other_user}","gists_url":"https://api.github.com/users/RickMoynihan/gists{/gist_id}","starred_url":"https://api.github.com/users/RickMoynihan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RickMoynihan/subscriptions","organizations_url":"https://api.github.com/users/RickMoynihan/orgs","repos_url":"https://api.github.com/users/RickMoynihan/repos","events_url":"https://api.github.com/users/RickMoynihan/events{/privacy}","received_events_url":"https://api.github.com/users/RickMoynihan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels//system/networking","name":"/system/networking","color":"fbca04"},{"url":"https://api.github.com/repos/docker/docker/labels/black-belt","name":"black-belt","color":"000000"},{"url":"https://api.github.com/repos/docker/docker/labels/Distribution","name":"Distribution","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":32,"created_at":"2014-02-25T11:33:57Z","updated_at":"2015-02-26T22:35:02Z","closed_at":null,"body":"I have a simple Dockerfile like this deriving from `ubuntu:13.04` with few dependencies:\r\n\r\n     FROM ubuntu:13.04\r\n     MAINTAINER Rick Moynihan \"foo@example.com\"\r\n\r\n     # install prerequisites\r\n     RUN sed -i 's/main$/main universe/' /etc/apt/sources.list && apt-get update\r\n\r\n     RUN apt-get update && apt-get clean\r\n\r\n     RUN apt-get install -y python-dev curl wget zip\r\n\r\n     ADD twenty-meg-file /tmp/twenty-meg-file\r\n\r\nWhen I then try and issue curl commands to upload the `twenty-meg-file` from inside the container it fails (non deterministically).\r\n\r\n     root@2d889713fbb4:/tmp# curl -f -X POST -H \"Content-Type: application/rdf+xml\" -d @/tmp/twenty-meg-file http://192.168.0.190:3030/junk/data\r\n     curl: (56) Recv failure: Connection reset by peer\r\n\r\nNormally it fails, sometimes it succeeds.  When I run the following command outside the docker (in my vagrant instance or on my physical host (OSX darwin)) it passes everytime.\r\n\r\nThe HTTP server reports the error as being: \"Premature end of file.\" both these errors seem to indicate that somewhere the (virtual) networking stack is abruptly closing the socket before the transfer is complete.\r\n\r\nI also see this same error inside my dockers when creating the same post via a different library (e.g. pythons HTTP requests API):\r\n\r\nI am running dockers inside a Vagrant 1.4.3 VM, which is running ubuntu precise.  Precisely:\r\n\r\n      vagrant@precise64:~$ uname -a\r\n      Linux precise64 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\nMy docker version is:\r\n\r\n        vagrant@precise64:~$ docker version\r\n        Client version: 0.8.1\r\n        Go version (client): go1.2\r\n        Git commit (client): a1598d1\r\n        Server version: 0.8.1\r\n        Git commit (server): a1598d1\r\n        Go version (server): go1.2\r\n        Last stable version: 0.8.1\r\n\r\nAny help appreciated.\r\n\r\nOh, and many many thanks for docker! :-)"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/76289814","html_url":"https://github.com/docker/docker/issues/4329#issuecomment-76289814","issue_url":"https://api.github.com/repos/docker/docker/issues/4329","id":76289814,"user":{"login":"unclejack","id":1409668,"avatar_url":"https://avatars.githubusercontent.com/u/1409668?v=3","gravatar_id":"","url":"https://api.github.com/users/unclejack","html_url":"https://github.com/unclejack","followers_url":"https://api.github.com/users/unclejack/followers","following_url":"https://api.github.com/users/unclejack/following{/other_user}","gists_url":"https://api.github.com/users/unclejack/gists{/gist_id}","starred_url":"https://api.github.com/users/unclejack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unclejack/subscriptions","organizations_url":"https://api.github.com/users/unclejack/orgs","repos_url":"https://api.github.com/users/unclejack/repos","events_url":"https://api.github.com/users/unclejack/events{/privacy}","received_events_url":"https://api.github.com/users/unclejack/received_events","type":"User","site_admin":false},"created_at":"2015-02-26T22:35:02Z","updated_at":"2015-02-26T22:35:02Z","body":"@jfrazelle These two issues aren't the same."}}