{"action":"opened","issue":{"url":"https://api.github.com/repos/docker/docker/issues/28321","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/28321/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/28321/comments","events_url":"https://api.github.com/repos/docker/docker/issues/28321/events","html_url":"https://github.com/docker/docker/issues/28321","id":188840301,"number":28321,"title":"HTTP/Insecure repository: http: server gave HTTP response to HTTPS client","user":{"login":"ktamiola","id":7100577,"avatar_url":"https://avatars.githubusercontent.com/u/7100577?v=3","gravatar_id":"","url":"https://api.github.com/users/ktamiola","html_url":"https://github.com/ktamiola","followers_url":"https://api.github.com/users/ktamiola/followers","following_url":"https://api.github.com/users/ktamiola/following{/other_user}","gists_url":"https://api.github.com/users/ktamiola/gists{/gist_id}","starred_url":"https://api.github.com/users/ktamiola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktamiola/subscriptions","organizations_url":"https://api.github.com/users/ktamiola/orgs","repos_url":"https://api.github.com/users/ktamiola/repos","events_url":"https://api.github.com/users/ktamiola/events{/privacy}","received_events_url":"https://api.github.com/users/ktamiola/received_events","type":"User","site_admin":false},"labels":[{"id":73635104,"url":"https://api.github.com/repos/docker/docker/labels/area/distribution","name":"area/distribution","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-11T20:09:29Z","updated_at":"2016-11-11T20:09:29Z","closed_at":null,"body":"**Description**\r\nI am trying to setup a local insecure repository on VM running Ubuntu 16.04.1 image. I have followed official configuration guide for local registry and created a `daemon.json` placed in `/etc/docker/daemon.json`.  I have also modified the contents of `/etc/default/docker` according to manual. Unfortunately, no luck with plain HTTP repository. Help!\r\n\r\n**daemon.json**\r\n```\r\n{\r\n    \"insecure-registries\": [\"10.0.0.15:5000\"]\r\n}\r\n```\r\n\r\n**Command**\r\nI am attempting to connect from a different host (10.0.0.1, with full access permissions for 10.0.0.15) and push to 10.0.0.15:5000.\r\n```\r\ndocker push 10.0.0.15:5000/peptone-rpc-controller\r\n```\r\n\r\n**Error:**\r\n```\r\nThe push refers to a repository [10.0.0.15:5000/peptone-rpc-controller]\r\nGet https://10.0.0.15:5000/v1/_ping: http: server gave HTTP response to HTTPS client\r\n```\r\n\r\n**docker info**\r\n```\r\nContainers: 2\r\n Running: 1\r\n Paused: 0\r\n Stopped: 1\r\nImages: 1\r\nServer Version: 1.12.3\r\nStorage Driver: aufs\r\n Root Dir: /var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 19\r\n Dirperm1 Supported: true\r\nLogging Driver: json-file\r\nCgroup Driver: cgroupfs\r\nPlugins:\r\n Volume: local\r\n Network: host null bridge overlay\r\nSwarm: inactive\r\nRuntimes: runc\r\nDefault Runtime: runc\r\nSecurity Options: apparmor seccomp\r\nKernel Version: 4.4.0-47-lowlatency\r\nOperating System: Ubuntu 16.04.1 LTS\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 1\r\nTotal Memory: 488.3 MiB\r\nName: peptone-registry\r\nID: EK2K:QGNT:4WSX:XFZ3:2LX6:2BR3:LUYV:2U66:4OCF:O4TZ:ZXWO:PY3X\r\nDocker Root Dir: /var/lib/docker\r\nDebug Mode (client): false\r\nDebug Mode (server): false\r\nRegistry: https://index.docker.io/v1/\r\nWARNING: No swap limit support\r\nInsecure Registries:\r\n 10.0.0.15:5000\r\n 127.0.0.0/8\r\n```\r\n\r\n**/etc/default/docker**\r\n```\r\n# Docker Upstart and SysVinit configuration file\r\n\r\n#\r\n# THIS FILE DOES NOT APPLY TO SYSTEMD\r\n#\r\n#   Please see the documentation for \"systemd drop-ins\":\r\n#   https://docs.docker.com/engine/articles/systemd/\r\n#\r\n\r\n# Customize location of Docker binary (especially for development testing).\r\n#DOCKERD=\"/usr/local/bin/dockerd\"\r\n\r\n# Use DOCKER_OPTS to modify the daemon startup options.\r\nDOCKER_OPTS=\"--insecure-registry 10.0.0.15:5000\"\r\n\r\n# If you need Docker to use an HTTP proxy, it can also be specified here.\r\n#export http_proxy=\"http://127.0.0.1:3128/\"\r\n\r\n# This is also a handy place to tweak where Docker's temporary files go.\r\n#export TMPDIR=\"/mnt/bigdrive/docker-tmp\"\r\n```"}}
{"actor":{"display_login":"ktamiola"}}