Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore missing config.v2.json files on migration
We have seen some cases in which the file `/var/lib/docker/containers/<UUID>/config.v2.json` was not found for certain UUIDs. This causes the whole migration to fail and, worse, causes our migration cleanup code to fail. A missing `config.v2.json` indicates that directory does not contain a valid container, so we should not even try to migrate them. That's what this commit does: it makes the migration ignore directories with a missing `config.v2.json`. I don't think we should have directories like this in the first place, this is probably the side effect of some other issue. That said, Docker itself ignores these directories (after logging a warning) during startup, so here are just bringing the Engine in line with the standard behavior. Signed-off-by: Leandro Motta Barros <[email protected]> Change-type: patch
- Loading branch information