docker-registry-ui/examples/populate-registry

9 lines
215 B
Plaintext
Raw Normal View History

2020-01-26 12:00:22 +01:00
#!/bin/sh
REGISTRY="${1:-localhost:5000}"
for image in alpine:latest alpine:edge alpine:3.11 alpine:3.10 alpine:3.9; do
docker pull $image
docker tag $image $REGISTRY/$image
docker push $REGISTRY/$image
done