Skip to content

Instantly share code, notes, and snippets.

@xmik
xmik / pull_images_from_v1.sh
Last active May 3, 2016 09:44
Migrate docker images from docker registry v1 to docker registry v2
#!/bin/bash
# This script gets a list of all docker images from a docker registry v1
# and pulls each image. Set the DOCKER_REGISTRY_NO_HTTP variable below.
# You may need to run `docker pull` command with `sudo`.
# If you want to use it seeing the output in terminal and saving the output to file:
# pull_images_from_v1.sh 2>&1 | tee ~/pull_output.txt
DOCKER_REGISTRY_NO_HTTP="TODO!!"
DOCKER_REGISTRY="http://${DOCKER_REGISTRY_NO_HTTP}"