{"action":"closed","issue":{"url":"https://api.github.com/repos/coreos/coreos-cloudinit/issues/342","labels_url":"https://api.github.com/repos/coreos/coreos-cloudinit/issues/342/labels{/name}","comments_url":"https://api.github.com/repos/coreos/coreos-cloudinit/issues/342/comments","events_url":"https://api.github.com/repos/coreos/coreos-cloudinit/issues/342/events","html_url":"https://github.com/coreos/coreos-cloudinit/issues/342","id":76415217,"number":342,"title":"docker private registry","user":{"login":"vallard","id":169293,"avatar_url":"https://avatars.githubusercontent.com/u/169293?v=3","gravatar_id":"","url":"https://api.github.com/users/vallard","html_url":"https://github.com/vallard","followers_url":"https://api.github.com/users/vallard/followers","following_url":"https://api.github.com/users/vallard/following{/other_user}","gists_url":"https://api.github.com/users/vallard/gists{/gist_id}","starred_url":"https://api.github.com/users/vallard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vallard/subscriptions","organizations_url":"https://api.github.com/users/vallard/orgs","repos_url":"https://api.github.com/users/vallard/repos","events_url":"https://api.github.com/users/vallard/events{/privacy}","received_events_url":"https://api.github.com/users/vallard/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-14T16:33:35Z","updated_at":"2015-05-14T22:51:40Z","closed_at":"2015-05-14T22:51:40Z","body":"Sorry if this has been answered before or if I'm asking in the wrong place.  I can't find the right way to solve this.  I'm using cloud-init exactly like shown in the demo: https://coreos.com/docs/launching-containers/building/registry-authentication/\r\n\r\n```yaml\r\n#cloud-config\r\n\r\nwrite_files:\r\n  - path: /etc/systemd/system/docker.service.d/50-insecure-registry.conf\r\n    content: |\r\n        [Service]\r\n        Environment='DOCKER_OPTS=--insecure-registry=\"10.0.0.0/8\"'\r\n```\r\nMy private registry is 10.2.3.7:5000.  \r\n\r\nOnce this machine boots I do the following: \r\n```\r\ndocker pull cirros\r\ndocker tag cirros 10.2.3.7:5000/vallard/cirros\r\ndocker push 10.2.3.7:5000/vallard/cirros\r\n```\r\n(Note: This registry is a container running in another coreos instance that has never been accessed)\r\n\r\nI get the error: \r\n```\r\nFATA[0004] Error: v1 ping attempt failed with error: Get https://10.2.3.7:5000/v1/_ping: EOF. If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add `--insecure-registry 10.2.3.7: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/10.2.3.7:5000/ca.crt \r\n```\r\nIt doesn't seem to be falling back to http for some reason.  Doing:\r\n\r\n```\r\ncurl http://10.2.3.7:5000/v1/_ping\r\n```\r\nreturns {} like its supposed to.  \r\n\r\nAlso, it did create the file in /etc/systemd/system/docker.service.d/50-insecure-registry.conf\r\n\r\nHopefully I'm missing something really simple.  Thanks for any help!"}}