how to pull local images to my registry ?
docker push localhost:5000/image
you can write a handy retag script like
#!/bin/bash
LOCAL_IMAGE_NAME=localhost:5000/retag
IMAGE="{{.Repository}}:{{.Tag}}"
FORMAT="docker tag $IMAGE $LOCAL_IMAGE_NAME/$IMAGE && docker push $LOCAL_IMAGE_NAME/$IMAGE"
docker pull --all-tags $1 &&
docker images --format "$FORMAT" |
grep " $1:" |
sed 's/retag\/\(\w*\/\)/\1/g' |
xargs -I {} sh -c "{}"
invoke it than with ./retag alpine
and it will republish all alpine images to your local registry. Available under localhost:5000/retag/alpine
unless you change it to a better name.