File: containers-storage-import-layer.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 (76 lines) | stat: -rw-r--r-- 2,198 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
## containers-storage-import-layer 1 "April 2019"

## NAME
containers-storage import-layer - Import files to a new layer

## SYNOPSIS
**containers-storage** **import-layer** [*options* [...]] [*parentLayerNameOrID*]

## DESCRIPTION
This subcommand is a combination of *containers-storage create-layer* and
*containers-storage apply-diff*.

When a layer is first created with *containers-storage create-layer*, 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
by running *containers-storage apply-diff*.

## OPTIONS
**-n** *name*

Sets an optional name for the layer. If a name is already in use, an error is
returned.

**-i | --id** *ID*

Sets the ID for the layer. If none is specified, one is generated.

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

**-l | --label** *mount-label*

Sets the label which should be assigned as an SELinux context when mounting the
layer.

**-r | --readonly**

Mark the layer as readonly.

**-j | --json**

Prefer JSON output.

**--uidmap**

UID map specified in the format expected by *subuid*. It cannot be specified simultaneously with *--hostuidmap*.

**--gidmap**

GID map specified in the format expected by *subgid*. It cannot be specified simultaneously with *--hostuidmap*.

**--hostuidmap**

Force host UID map. It cannot be specified simultaneously with neither *--uidmap* nor *--subuidmap*.

**--hostgidmap**

Force host GID map. It cannot be specified simultaneously with neither *--gidmap* nor *--subgidmap*.

**--subuidmap** *username*

Create UID map for username using the data from /etc/subuid. It cannot be specified simultaneously with *--hostuidmap*.

**--subgidmap** *group-name*

Create GID map for group-name using the data from /etc/subgid. It cannot be specified simultaneously with *--hostuidmap*.

## EXAMPLE
**containers-storage import-layer -f 71841c97e320d6cde.tar.gz -n new-layer somelayer**

## SEE ALSO
containers-storage-create-layer(1)
containers-storage-apply-diff(1)