{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/12405","labels_url":"https://api.github.com/repos/docker/docker/issues/12405/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/12405/comments","events_url":"https://api.github.com/repos/docker/docker/issues/12405/events","html_url":"https://github.com/docker/docker/issues/12405","id":68719451,"number":12405,"title":"local registry : push fails","user":{"login":"ekeryelleven","id":9483289,"avatar_url":"https://avatars.githubusercontent.com/u/9483289?v=3","gravatar_id":"","url":"https://api.github.com/users/ekeryelleven","html_url":"https://github.com/ekeryelleven","followers_url":"https://api.github.com/users/ekeryelleven/followers","following_url":"https://api.github.com/users/ekeryelleven/following{/other_user}","gists_url":"https://api.github.com/users/ekeryelleven/gists{/gist_id}","starred_url":"https://api.github.com/users/ekeryelleven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekeryelleven/subscriptions","organizations_url":"https://api.github.com/users/ekeryelleven/orgs","repos_url":"https://api.github.com/users/ekeryelleven/repos","events_url":"https://api.github.com/users/ekeryelleven/events{/privacy}","received_events_url":"https://api.github.com/users/ekeryelleven/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/Distribution","name":"Distribution","color":"e11d21"},{"url":"https://api.github.com/repos/docker/docker/labels/status/help-wanted","name":"status/help-wanted","color":"D1F2A5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-04-15T15:56:14Z","updated_at":"2015-04-16T13:31:39Z","closed_at":null,"body":"OS: CentOS 6.6\r\nKernel: 2.6.32-504.12.2.el6.x86_64\r\nDocker version:\r\n`$ sudo docker version`\r\n`Client version: 1.5.0`\r\n`Client API version: 1.17`\r\n`Go version (client): go1.4.1`\r\n\r\nI'm behind a corporate proxy (http://domain\\username:password@proxy:port).\r\n\r\nI'm launching the Docker daemon with this command:\r\n`sudo docker -d --insecure-registry 127.0.0.1:49500&`\r\n\r\nI've downloaded the config_sample.yml file from docker-registry github, renamed it to registry_config.yml, and just modified the \"storage_path\" in the local flavor (in order to point to a chosen directory where I want to mount a volume):\r\n`local: &local`\r\n`    <<: *common`\r\n`    storage: local`\r\n`    storage_path: /image`\r\n\r\nTo start the registry (version 0.9.1), I open another tab in my terminal and I use that command:\r\n`sudo docker run -t -i -p 127.0.0.1:49500:5000 -v $HOME/localRegistry/image:/image  -e DOCKER_REGISTRY_CONFIG=$HOME/localRegistry/registry_config.yml --name registry registry /bin/bash`\r\n\r\nBack on the 1st terminal tab, I then try to push a random image into the local registry, and this is where I get some errors:\r\n`$sudo docker push 127.0.0.1:49500/centos:7`\r\n`INFO[1215] POST /v1.17/images/127.0.0.1:49500/centos/push?tag=7`\r\n`INFO[1215] +job push(127.0.0.1:49500/centos)`\r\n`INFO[1215] +job resolve_repository(127.0.0.1:49500/centos)`\r\n`INFO[1215] -job resolve_repository(127.0.0.1:49500/centos) = OK (0)`\r\n`invalid registry endpoint \"http://127.0.0.1:49500/v0/\". HTTPS attempt: unable to ping registry endpoint https://127.0.0.1:49500/v0/`\r\n`v2 ping attempt failed with error: Get https://127.0.0.1:49500/v2/: read tcp 127.0.0.1:49500: connection reset by peer`\r\n` v1 ping attempt failed with error: Get https://127.0.0.1:49500/v1/_ping: read tcp 127.0.0.1:49500: connection reset by peer. HTTP attempt: unable to ping registry endpoint http://127.0.0.1:49500/v0/`\r\n`v2 ping attempt failed with error: Get http://127.0.0.1:49500/v2/: read tcp 127.0.0.1:49500: connection reset by peer`\r\n` v1 ping attempt failed with error: Get http://127.0.0.1:49500/v1/_ping: read tcp 127.0.0.1:49500: connection reset by peer`\r\n`INFO[1215] -job push(127.0.0.1:49500/centos) = ERR (1)`\r\n`ERRO[1215] Handler for POST /images/{name:.*}/push returned error:  v1 ping attempt failed with error: Get http://127.0.0.1:49500/v1/_ping: read tcp 127.0.0.1:49500: connection reset by peer`\r\n`ERRO[1215] HTTP Error: statusCode=500  v1 ping attempt failed with error: Get http://127.0.0.1:49500/v1/_ping: read tcp 127.0.0.1:49500: connection reset by peer`\r\n`FATA[0000] Error: v1 ping attempt failed with error: Get http://127.0.0.1:49500/v1/_ping: read tcp 127.0.0.1:49500: connection reset by peer`\r\n\r\nAsk me if you want some more specific details. Thanks for your attention :)"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/93734828","html_url":"https://github.com/docker/docker/issues/12405#issuecomment-93734828","issue_url":"https://api.github.com/repos/docker/docker/issues/12405","id":93734828,"user":{"login":"dmp42","id":332946,"avatar_url":"https://avatars.githubusercontent.com/u/332946?v=3","gravatar_id":"","url":"https://api.github.com/users/dmp42","html_url":"https://github.com/dmp42","followers_url":"https://api.github.com/users/dmp42/followers","following_url":"https://api.github.com/users/dmp42/following{/other_user}","gists_url":"https://api.github.com/users/dmp42/gists{/gist_id}","starred_url":"https://api.github.com/users/dmp42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmp42/subscriptions","organizations_url":"https://api.github.com/users/dmp42/orgs","repos_url":"https://api.github.com/users/dmp42/repos","events_url":"https://api.github.com/users/dmp42/events{/privacy}","received_events_url":"https://api.github.com/users/dmp42/received_events","type":"User","site_admin":false},"created_at":"2015-04-16T13:31:39Z","updated_at":"2015-04-16T13:31:39Z","body":"I'm french :)\r\n\r\nStart simple. Don't bother with the proxy for now.\r\n\r\nJust try to start your registry, and curl to it.\r\n\r\nDoes your registry appear in `docker ps`?\r\nIf not, what's in the container logs?"}}