Allow to downgrade local volumes from > 1.7 to 1.6.#13699
Allow to downgrade local volumes from > 1.7 to 1.6.#13699icecrime merged 1 commit intomoby:masterfrom
Conversation
|
ping @ibuildthecloud @cpuguy83 PR for the downgrade issue |
|
Downgrades have never worked |
|
@crosbymichael Is that to say that we shouldn't even consider this PR? |
|
Agreed on IRC that we should close this PR. |
|
Reopening in light of the recent conversations on #13695. Does this fully resolve the issue? |
|
There is some data migration handling that I can fix here. |
80ba9de to
60398da
Compare
|
This changes the local storage layout a little bit to allow Downgrade Docker 1.7 to Docker 1.6, only if a volume was created with Docker < 1.7. History: Pre 1.7m, volume information was stored in two separated directories:
Post 1.7, volume information is stored in one place, The docker daemon takes care of migrating volumes from 1.6 to 1.7 by creating a symlink from Unfortunately, the two previous RCs for 1.7 didn't follow that migration, so there is a special migration for volumes created with Docker 1.7 RC1 and Docker 1.7 RC2. This is a very small corner case, I don't expect anyone running Docker 1.7 RC in production, except us, ouch. |
c721062 to
43527c0
Compare
|
Thanks @calavera! Is an additional test needed to check if |
43527c0 to
9952f22
Compare
|
good catch @thaJeztah, fixed. |
|
Thanks! ❤️ |
9952f22 to
dbf9422
Compare
|
I'm not sure we should bother with previous RC migration paths. Nevertheless, LGTM: I'm not 100% confident because the change is quite significant, but reading several times through it it seems good (and thanks for the code comments btw). |
daemon/volumes.go
Outdated
dbf9422 to
ed71ee2
Compare
|
@tiborvass I think the comments are more clear now, let me know what you think. |
ed71ee2 to
1f5bdd1
Compare
Signed-off-by: David Calavera <[email protected]>
1f5bdd1 to
bd9814f
Compare
|
I was concerned about using prefix test on paths at first, but considering that Still LGTM. |
|
LGTM |
Allow to downgrade local volumes from > 1.7 to 1.6.
|
cherry-picked |
See for details #13695
Signed-off-by: David Calavera [email protected]