-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd: add applydiff-using-staging-dir
add a new command to exercise the ApplyDiff from a staging directory. Signed-off-by: Giuseppe Scrivano <[email protected]>
- Loading branch information
Showing
2 changed files
with
127 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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) |