Export tar modified files to container

I am running containers using Docker. I am taking snapshots of the container file system as diff from the container base using docker commit. I would also like to take a snapshot in a tar file that only stores files that have been modified to commit.

Using docker diff, I see which files have been modified. Using docker export, I get all the files in the container in tar. How to get tar file of only modified files from the database? Ideally, I could also exclude directories (e.g. /dev).

+4
source share
1 answer

This tarball is what is stored in the Docker registry!

, Docker Registry Protocol .

, /var/lib/docker/graph/<imageid>/layer: . , Docker 0.7, AUFS.

+4

All Articles