mirror of
https://github.com/docker/cli.git
synced 2026-01-19 21:41:31 +03:00
f21492c649f39a5d1adadd1dd5855c22a2b9efff
It is easy for one to use docker for a while, shut it down and restart docker with different set of storage options for device mapper driver which will effectively change the thin pool. That means any of the metadata stored in /var/lib/docker/devicemapper/metadata/ is not valid for the new pool and user will run into various kind of issues like container not found in the pool etc. Users think that their images or containers are lost but it might just be the case of configuration issue. People might use wrong metadata with wrong pool. To detect such situations, save UUID of base image and once docker starts later, query and compare the UUID of base image with the stored one. If they don't match, fail the initialization with the error that UUID failed to match. That way user will be forced to cleanup /var/lib/docker/ directory and start docker again. Signed-off-by: Vivek Goyal <vgoyal@redhat.com> Upstream-commit: c06b05b11e6bbe48ae3ca140096d7862e5e312f8 Component: engine
Description
Интерфейс командной строки Docker
Languages
Go
92%
Shell
5.5%
Dockerfile
1.1%
Go-Checksums
0.9%
Makefile
0.3%
Other
0.2%