Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
layer store: Handle volatile and transient layer
We store information about the layers in two files, layers.json and volatile-layers.json. This allows us to treat the two stores differently, for example saving the volatile json with the NoSync option, which is faster (but less robust). In normal mode we store only layers for the containers that are marked volatile (`--rm`), as these are not expected to persist anyway. This way informantion about such containers are faster to save, and in case of an unclean shutdown we only risk loss of information about other such volatile containers. In transient mode *all* container layers are stored in the volatile json, and additionally it (and the corresponding lock file) are stored in tmpfs, thus both improving performance and automatically making sure no container layers are persisted across boots. Signed-off-by: Alexander Larsson <[email protected]>
- Loading branch information