File: containers-storage-applydiff.md

package info (click to toggle)
golang-github-containers-storage 1.43.0%2Bds1-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,820 kB
  • sloc: sh: 581; ansic: 388; makefile: 164; awk: 12
file content (32 lines) | stat: -rw-r--r-- 1,180 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
## containers-storage-apply-diff 1 "August 2016"

## NAME
containers-storage apply-diff - Apply a layer diff to a layer

## SYNOPSIS
**containers-storage** **apply-diff** [*options* [...]] *layerNameOrID* [*referenceLayerNameOrID*]

## DESCRIPTION
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
*containers-storage diff* or an equivalent.

Layer diffs are not typically applied manually.  More often they are applied by
a tool which is being used to import an entire image, such as **skopeo**.

## OPTIONS
**-f | --file** *filename*

Specifies the name of a file from which the diff should be read.  If this
option is not used, the diff is read from standard input.

## EXAMPLE
**containers-storage apply-diff -f 71841c97e320d6cde.tar.gz layer1**

## SEE ALSO
containers-storage-changes(1)
containers-storage-diff(1)
containers-storage-diffsize(1)