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

upgrade to latest docker #108

Closed justechn closed 7 years ago

justechn commented 7 years ago

I had to upgrade to the latest docker to get past a tagging bug. Since I could not do this and still have the decoding of the username and password I took that out and just prompted for them and stored them in a variable.

mbentley commented 7 years ago

test this please

sorry, having issues with CI... edit: yay fixed :)

mbentley commented 7 years ago

Looks like the test is failing

=================================================
run a test migration from v1 to v2 (http; w/auth)
=================================================
Flag --email has been deprecated, will be removed in 1.13.
Login Succeeded
cat: can't open '/root/.dockercfg': No such file or directory

[ERROR] Non-zero exit code
[ERROR] Migration from v1 to v2 failed!

docker run command:

docker run -i --rm \
  -e V1_REGISTRY=dockertest1.core.dckrindy.io:5000 \
  -e V2_REGISTRY=dockertest1.core.dckrindy.io:5001 \
  -e USE_HTTP=true \
  -e V1_USERNAME=username \
  -e V1_PASSWORD=password \
  -e V1_EMAIL=matt@docker.com \
  -e V2_USERNAME=username \
  -e V2_PASSWORD=password \
  -e V2_EMAIL=matt@docker.com \
  -e ERROR_ACTION=abort \
  -e USER_PROMPT=false \
  -v /var/run/docker.sock:/var/run/docker.sock \
  docker/migrator:${BUILD_NUMBER}