Logo

Armand.nz

Home / About / Linkedin / Github

Enable pulling images from a private registry (insecure)

#docker |

By default docker use https to connect to docker registry. However, there can be use cases to use insecure registry, e.g. dev and testing.

Here are the steps to use insecure registry in kubernetes:

  1. On the master and every worker node, edit /etc/docker/daemon.json and add insecure-registries. You will need to extend your existing json body with a comma:
  # sudo vim /etc/docker/daemon.json
  {
    "exec-opts": ["native.cgroupdriver=systemd"],
    "insecure-registries":[
      "jenkins:5000"
    ]
  }
  1. Then restart docker:
  service docker restart
comments powered byDisqus

Copyright © Armand