github.com/vrothberg/storage@v1.12.13/docs/containers-storage-applydiff.md (about) 1 ## containers-storage-apply-diff 1 "August 2016" 2 3 ## NAME 4 containers-storage apply-diff - Apply a layer diff to a layer 5 6 ## SYNOPSIS 7 **containers-storage** **apply-diff** [*options* [...]] *layerNameOrID* [*referenceLayerNameOrID*] 8 9 ## DESCRIPTION 10 When a layer is first created, it contains no changes relative to its parent 11 layer. The layer can either be mounted read-write and its contents modified 12 directly, or contents can be added (or removed) by applying a layer diff. A 13 layer diff takes the form of a (possibly compressed) tar archive with 14 additional information present in its headers, and can be produced by running 15 *containers-storage diff* or an equivalent. 16 17 Layer diffs are not typically applied manually. More often they are applied by 18 a tool which is being used to import an entire image, such as **skopeo**. 19 20 ## OPTIONS 21 **-f | --file** *filename* 22 23 Specifies the name of a file from which the diff should be read. If this 24 option is not used, the diff is read from standard input. 25 26 ## EXAMPLE 27 **containers-storage apply-diff -f 71841c97e320d6cde.tar.gz layer1** 28 29 ## SEE ALSO 30 containers-storage-changes(1) 31 containers-storage-diff(1) 32 containers-storage-diffsize(1)