Add support for getting archive of container rootfs changes #9839
Labels
area/api
area/builder
area/distribution
exp/expert
kind/enhancement
Enhancements are not bugs or new features but can improve usability or performance.
The
docker export
command and corresponding API endpoint allow the client to get an archive of the container's root filesystem. This is useful for squashing an entire set of image layers into one, but there's currently no way to get just the file system diff for a container.This could be achieved by adding an optional parameter to the container export API endpoint and an optional flag to the
docker export
command:diff=1
This would instruct the runtime to only return the layer diff for the container rather than the entire filesystem.Why is this useful?
It would allow for additional functionality in tools which are used to build images like the
docker build
command. Layer archives could be collected by the client, checksums computed for each layer archive, and for images to be built using a new content-addressable format.The text was updated successfully, but these errors were encountered: