-
Notifications
You must be signed in to change notification settings - Fork 82
can i migrate from v2 registry to another ? #110
Comments
There actually isn't a database for the image data; it is all based on what exists on disk. If you copy the contents from the old to new registry, all data will just be there. |
@mbentley This doesn't work cleanly on some storage drivers (I know btrfs fails if you try to just copy) and migration is valuable if you want to move from one storage backend to another. |
You mean when the registry image data is stored on disk and the disk is formatted with brtfs, it fails to copy over to the new registry? That doesn't make much sense as the registry wouldn't store the files in any different way for a different filesystem, at least not that I am aware of. Are you talking about from one Docker engine to another? |
@mbently I mean I tested creating 2 identical LXC containers with Docker installed using btrfs backend, pulled I think the reason this happens is because with btrfs the layers aren't just files, they are btrfs file system objects of some kind. I don't know enough about btrfs to say any more than that. |
So yeah, that's the problem. You would be better off doing a
|
@mbentley Thanks for that clarification. |
i have a docker registry:2 private registry which is running for quite sometime in my testing environment with auth ( httpasswd ) and i want to change it's auth method to token based. can i use the migrator to migrate its database ( images, tags, layers everything ? ) or is there another way to do it.
The text was updated successfully, but these errors were encountered: