Debian Codegraph @

doc/source/commands/system_stash.rst

raw
1 .. _kiwi_system_stash:
2
3 kiwi-ng system stash
4 ====================
5
6 .. _db_kiwi_system_stash_synopsis:
7
8 SYNOPSIS
9 --------
10
11 .. code:: bash
12
13 kiwi-ng [global options] service <command> [<args>]
14
15 kiwi-ng system stash --help
16 kiwi-ng system stash --root=<directory>
17 [--tag=<name>]
18 [--container-name=<name>]
19 kiwi-ng system stash --list
20
21 .. _db_kiwi_system_stash_desc:
22
23 DESCRIPTION
24 -----------
25
26 Create a container from the given root directory. The command
27 takes the contents of the given root directory at call time
28 and creates an OCI container from it, called a stash. The stash
29 is stored below `/var/tmp/kiwi-stash` and imported into the
30 local container registry using `podman`. If a stash with the
31 same container name already exists, a new layer is added to it.
32
33 A stash can be used as the image root for the
34 :ref:`kiwi_system_stackbuild` command. For a detailed introduction,
35 see :ref:`stackbuild`.
36
37 .. _db_kiwi_system_stash_opts:
38
39 OPTIONS
40 -------
41
42 --root=<directory>
43
44 The path to the root directory, usually the result of
45 a former system prepare or build call.
46
47 --tag=<name>
48
49 The tag name for the container. By default, `latest`
50 is used.
51
52 --container-name=<name>
53
54 The name of the container. By default, it is
55 set to the image name of the stash.
56
57 --list
58
59 List the available stashes.
60
61 .. _db_kiwi_system_stash_example:
62
63 EXAMPLE
64 -------
65
66 .. code:: bash
67
68 $ kiwi-ng system stash --root /tmp/mytest/build/image-root