Friday, January 20, 2017

Local Insecure Docker Registry

Start the local registry:
docker run -d -p 5000:5000 --restart=always --name registry registry:2

Get image:
docker pull ubuntu && docker tag ubuntu localhost:5000/ubuntu

Push to the local registry:
docker push localhost:5000/ubuntu

Enable insecure docker registry for engine in /usr/lib/systemd/system/docker.service
ExecStart=/usr/bin/dockerd --insecure-registry 10.0.1.11:5000

Pull image
docker pull localhost:5000/ubuntu


No comments: