File: containers-storage-applydiff-using-staging-dir.md

package info (click to toggle)
golang-github-containers-storage 1.59.1%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 4,184 kB
  • sloc: sh: 630; ansic: 389; makefile: 143; awk: 12
file content (27 lines) | stat: -rw-r--r-- 1,101 bytes parent folder | download | duplicates (3)
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
## containers-storage-applydiff-using-staging-dir 1 "September 2023"

## NAME
containers-storage applydiff-using-staging-dir - Apply a layer diff to a layer using a staging directory

## SYNOPSIS
**containers-storage** **applydiff-using-staging-dir** *layerNameOrID* *source*

## 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.

Differently than **apply-diff**, the command **applydiff-using-staging-dir**
first creates a staging directory and then moves the final result to the destination.

## EXAMPLE
**containers-storage applydiff-using-staging-dir 5891b5b522 /path/to/diff**

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