{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker-registry/issues/1005","labels_url":"https://api.github.com/repos/docker/docker-registry/issues/1005/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker-registry/issues/1005/comments","events_url":"https://api.github.com/repos/docker/docker-registry/issues/1005/events","html_url":"https://github.com/docker/docker-registry/issues/1005","id":79464831,"number":1005,"title":" please add `--insecure-registry 172.27.25.59:5000` to the daemon's arguments","user":{"login":"arnos","id":989874,"avatar_url":"https://avatars.githubusercontent.com/u/989874?v=3","gravatar_id":"","url":"https://api.github.com/users/arnos","html_url":"https://github.com/arnos","followers_url":"https://api.github.com/users/arnos/followers","following_url":"https://api.github.com/users/arnos/following{/other_user}","gists_url":"https://api.github.com/users/arnos/gists{/gist_id}","starred_url":"https://api.github.com/users/arnos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arnos/subscriptions","organizations_url":"https://api.github.com/users/arnos/orgs","repos_url":"https://api.github.com/users/arnos/repos","events_url":"https://api.github.com/users/arnos/events{/privacy}","received_events_url":"https://api.github.com/users/arnos/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker-registry/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-05-22T13:56:11Z","updated_at":"2015-12-04T07:46:24Z","closed_at":null,"body":"The docker instructions simply don't work.\r\n\r\nUbunutu 15.04, docker version 1.6.1\r\n\r\nI've modified the docker service file\r\n```\r\n$ sudo vim /etc/init.d/docker\r\n # added --insecure-registry 172.27.25.59:5000 to the docker opts\r\nDOCKER_OPTS=--insecure-registry 172.27.25.59:5000\r\n```\r\nrestarted the service to no avail (sudo service docker restart)\r\n\r\nI've followed the instructions for deploying the 2.0 registry with a TLS enabled https://docs.docker.com/registry/deploying/\r\n\r\nand copied the generated crt file to /etc/docker/certs.d/172.27.25.59:5000/ca.crt and still I get the same error spit \r\n```\r\n $ docker push 172.27.25.59:5000/nginx\r\nFATA[0000] Error response from daemon: v1 ping attempt failed with error: Get https://172.27.25.59:5000/v1/_ping: dial tcp 172.27.25.59:5000: connection refused. If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add `--insecure-registry 172.27.25.59:5000` to the daemon's arguments. In the case of HTTPS, if you have access to the registry's CA certificate, no need for the flag; simply place the CA certificate at /etc/docker/certs.d/172.27.25.59:5000/ca.crt\r\n```\r\n\r\nAnd yet when you ```docker push localhost:5000/nginx``` it works like a charm (with TLS or without)\r\n\r\nThis is extremely frustrating to setup as the default instructions for the docker registry don't use TLS."},"comment":{"url":"https://api.github.com/repos/docker/docker-registry/issues/comments/161900220","html_url":"https://github.com/docker/docker-registry/issues/1005#issuecomment-161900220","issue_url":"https://api.github.com/repos/docker/docker-registry/issues/1005","id":161900220,"user":{"login":"pengqiuyuan","id":4953205,"avatar_url":"https://avatars.githubusercontent.com/u/4953205?v=3","gravatar_id":"","url":"https://api.github.com/users/pengqiuyuan","html_url":"https://github.com/pengqiuyuan","followers_url":"https://api.github.com/users/pengqiuyuan/followers","following_url":"https://api.github.com/users/pengqiuyuan/following{/other_user}","gists_url":"https://api.github.com/users/pengqiuyuan/gists{/gist_id}","starred_url":"https://api.github.com/users/pengqiuyuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pengqiuyuan/subscriptions","organizations_url":"https://api.github.com/users/pengqiuyuan/orgs","repos_url":"https://api.github.com/users/pengqiuyuan/repos","events_url":"https://api.github.com/users/pengqiuyuan/events{/privacy}","received_events_url":"https://api.github.com/users/pengqiuyuan/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T07:46:24Z","updated_at":"2015-12-04T07:46:24Z","body":"In my CentOS Linux release 7.1.1503 (Core)\r\nThe following configuration is working.\r\n\r\nfile: /lib/systemd/system/docker.service text:\r\n\r\n[Unit]\r\nDescription=Docker Application Container Engine\r\nDocumentation=https://docs.docker.com\r\nAfter=network.target docker.socket\r\nRequires=docker.socket\r\n\r\n[Service]\r\nEnvironmentFile=-/etc/sysconfig/docker\r\nExecStart=/usr/bin/docker -d $other_args -H fd://\r\nMountFlags=slave\r\nLimitNOFILE=1048576\r\nLimitNPROC=1048576\r\nLimitCORE=infinity\r\n\r\n[Install]\r\nWantedBy=multi-user.target\r\ncheck here >> EnvironmentFile=-/etc/sysconfig/docker\r\ncheck here >> ExecStart=/usr/bin/docker -d $other_args -H fd://\r\n\r\nfile: /etc/sysconfig/docker text:\r\n\r\n# /etc/sysconfig/docker\r\n#\r\n# Other arguments to pass to the docker daemon process\r\n# These will be parsed by the sysv initscript and appended\r\n# to the arguments list passed to docker -d\r\n\r\nother_args=\"--insecure-registry yoururl\"\r\nset registry address >> other_args=\"--insecure-registry yoururl\"\r\n\r\n# systemctl start docker\r\n\r\n\r\n# docker version\r\nClient version: 1.7.0\r\nClient API version: 1.19\r\nGo version (client): go1.4.2\r\nGit commit (client): 0baf609\r\nOS/Arch (client): linux/amd64\r\nServer version: 1.7.0\r\nServer API version: 1.19\r\nGo version (server): go1.4.2\r\nGit commit (server): 0baf609\r\nOS/Arch (server): linux/amd64"}}