File: containers-storage-create-layer.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 (42 lines) | stat: -rw-r--r-- 1,074 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
## containers-storage-create-layer 1 "August 2016"

## NAME
containers-storage create-layer - Create a layer

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

## DESCRIPTION
Creates a new layer which either has a specified layer as its parent, or if no
parent is specified, is empty.

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

**-m | --metadata** *metadata-value*

Sets the metadata for the layer to the specified value.

**-f | --metadata-file** *metadata-file*

Sets the metadata for the layer to the contents of the specified file.

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

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

## EXAMPLE
**containers-storage create-layer -f manifest.json -n new-layer somelayer**

## SEE ALSO
containers-storage-create-container(1)
containers-storage-create-image(1)
containers-storage-delete-layer(1)