docker-archive / v1.10-migrator

Prepare docker graph directory for content addressability
Apache License 2.0
24 stars 24 forks source link

how to use migrator? #18

Open xiaoyulei opened 8 years ago

xiaoyulei commented 8 years ago

https://github.com/docker/docker/wiki/Engine-v1.10.0-content-addressability-migration From this wiki, it says "All your current images, tags and containers are automatically migrated to the new foundation the first time you start updated Docker daemon."

But how to operator it? I execute v1.10-migrator , it report fail.

./v1.10-migrator FATA[0000] no storage driver directory was found at /var/lib/docker

thaJeztah commented 8 years ago

Error seems to indicate that /var/lib/docker is empty, or possibly you need to run as a privileged user (or with sudo). Is docker running with a different graph-directory than /var/lib/docker?

xiaoyulei commented 8 years ago

@thaJeztah /var/lib/docker is not empty. I do not change the default directory,all is default configuration. I try to use sudo, but it is the same.

thaJeztah commented 8 years ago

@YuleiXiao what version do you have installed currently (i.e., before 1.10)

xiaoyulei commented 8 years ago

@thaJeztah 1.9

maxcnunes commented 8 years ago

That problem occurs because is running the command without sudo. At least it was the reason for me.

timchenxiaoyu commented 7 years ago

migrator can migrate the container from one host to another?

thaJeztah commented 7 years ago

migrator can migrate the container from one host to another?

@timchenxiaoyu no, read the link in first comment here, and the readme of this repository

timchenxiaoyu commented 7 years ago

i see, it use to upgrade docker from 1.9 to 1.10 over.