.nh .SH containers-storage-applydiff-using-staging-dir 1 "September 2023" .SH NAME .PP containers-storage applydiff-using-staging-dir - Apply a layer diff to a layer using a staging directory .SH SYNOPSIS .PP \fBcontainers-storage\fP \fBapplydiff-using-staging-dir\fP \fIlayerNameOrID\fP \fIsource\fP .SH DESCRIPTION .PP When a layer is first created, it contains no changes relative to its parent layer. The layer can either be mounted read-write and its contents modified directly, or contents can be added (or removed) by applying a layer diff. A layer diff takes the form of a (possibly compressed) tar archive with additional information present in its headers, and can be produced by running \fIcontainers-storage diff\fP or an equivalent. .PP Differently than \fBapply-diff\fP, the command \fBapplydiff-using-staging-dir\fP first creates a staging directory and then moves the final result to the destination. .SH EXAMPLE .PP \fBcontainers-storage applydiff-using-staging-dir 5891b5b522 /path/to/diff\fP .SH SEE ALSO .PP containers-storage-apply-diff(1) containers-storage-changes(1) containers-storage-diff(1) containers-storage-diffsize(1)