Ryan Stull
Ryan Stull

Reputation: 1096

Trouble running docker registry in insecure mode on Ubuntu 16.04

I'm trying to run a docker registry in insecure mode on ubuntu 16.04 (docker v1.12.3). I made the changes specified in the documentation.

/etc/default/docker:

DOCKER_OPTS="--insecure-registry 10.10.10.10:5000"

and then restarted the docker service. However I'm having no luck. When I try to connect I get

Error response from daemon: Get https://10.10.10.10:5000/v1/_ping: 
http: server gave HTTP response to HTTPS client

Upvotes: 2

Views: 1700

Answers (1)

VonC
VonC

Reputation: 1323973

Check if this docker/distribution issue could help (when used with docker 1.12):

  • Create or modify /etc/docker/daemon.json
    { "insecure-registries":["myregistry.example.com:5000"] }
  • Restart docker daemon
    sudo service docker restart

On Unbuntu 16.04, check also if configuring docker through systemd is better.

Upvotes: 3

Related Questions