When running a running container with docker commit , does this create a consistent file system snapshot?
I am considering this approach for backing up containers. You just need a docker commit <container> <container>:<date> and push it to the local registry.
The backup will be incremental, as commit will just create a new layer.
Would also a large number of layers be severely damaged when working in a container? Is there a way to remove intermediate levels at a later point in time?
Edit
As agreed, I mean that every application designed to survive power loss should be able to recover these images. This basically means that no file should change after the snapshot starts.
In the meantime, I found out that docker supports several storage drivers (aufs, devicemapper, btrfs). Unfortunately, there is virtually no documentation about the differences between them and the options that they support.
docker backup unionfs
Florian Gutmann Jun 02 '14 at 8:02 2014-06-02 08:02
source share