docker-archive / migrator

Tool to migrate Docker images from Docker Hub or v1 registry to a v2 registry
Apache License 2.0
160 stars 82 forks source link

Migrator still using https despite of V1_USE_HTTP=true specified #76

Closed w1ndy closed 8 years ago

w1ndy commented 8 years ago

Hi,

I'm migrating a v1 registry without SSL to a v2 registry with SSL. Both registries don't need authentication. Here is the command I ran:

docker run -it \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -e V1_REGISTRY=10.76.2.13:5002 \
    -e V2_REGISTRY=10.76.2.13:5001 \
    -e NO_LOGIN=true -e V1_USE_HTTP=true docker/migrator

and it fails with

FATA[0004] Error response from daemon: Get https://10.76.2.13:5002/v1/_ping: EOF
w1ndy commented 8 years ago

Quick fix: add --insecure-registry=10.76.2.13:5002 to startup arguments of Docker daemon solved the problem. Perhaps this should be included in the docs?

Best Regards

mbentley commented 8 years ago

Correct, the daemon still needs to be configured to interact with an insecure registry. Good point about the docs, will update them when I am able to.