Tuesday, June 6, 2017

Trasnfer Docker Image Offline

Export docker image:
docker save -o export-docker-image.tar my_image:latest

Import docker image in destination:
docker load -i export-docker-image.tar

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