Debian Codegraph @

share/man/container-get.1.rst

raw
1 .. Open Infrastructure: compute-tools
2
3 .. Copyright (C) 2014-2026 Daniel Baumann <[email protected]>
4 ..
5 .. SPDX-License-Identifier: GPL-3.0+
6 ..
7 .. This program is free software: you can redistribute it and/or modify
8 .. it under the terms of the GNU General Public License as published by
9 .. the Free Software Foundation, either version 3 of the License, or
10 .. (at your option) any later version.
11 ..
12 .. This program is distributed in the hope that it will be useful,
13 .. but WITHOUT ANY WARRANTY; without even the implied warranty of
14 .. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 .. GNU General Public License for more details.
16 ..
17 .. You should have received a copy of the GNU General Public License
18 .. along with this program. If not, see <https://www.gnu.org/licenses/>.
19
20 =============
21 container-get
22 =============
23
24 --------------------
25 Download a container
26 --------------------
27
28 :manual section: 1
29 :manual group: Open Infrastructure
30
31 Synopsis
32 ========
33
34 | **container get** ['OPTIONS']
35 | **cnt g** ['OPTIONS']
36
37 Description
38 ===========
39
40 The **container get** command downloads a container based on a script.
41
42 Scripts
43 -------
44
45 The following download scripts are available:
46
47 curl:
48 Basic script to build Debian based container, see container-create-curl(1).
49
50 default:
51 Symlink (if existing) to a download script which is used if no script was
52 specified. On Debian based system this can be managed through
53 update-alternatives(1), i.e. 'sudo update-alternatives --config
54 container_get-script'.
55
56 Options
57 =======
58
59 The following **container get** options are available:
60
61 -n, --name='NAME':
62 Specify container name.
63
64 -c, --capability='CAPABILITY':
65 Specify capabilities to grant, see capabilities(7).
66
67 -d, --drop-capability='DROP_CAPABILITY':
68 Specify capabilities to drop, see capabilities(7).
69
70 -s, --script='SCRIPT':
71 Specify container build script, defaults to 'debootstrap'.
72
73 -v, --verbose:
74 Explain what is being done.
75
76 -b, --bind='DIRECTORY:DIRECTORY[:OPTIONS][;DIRECTORY:DIRECTORY[:OPTIONS]]':
77 Specify container read-write bind mounts, see systemd-nspawn(1) --bind option.
78
79 --bind-ro='DIRECTORY:DIRECTORY[:OPTIONS][;DIRECTORY:DIRECTORY[:OPTIONS]]':
80 Specify container read-only bind mounts, see systemd-nspawn(1) --bind-ro
81 option.
82
83 --cnt-overlay='DIRECTORY_LOWER:DIRECTORY_UPPER:DIRECTORY_WORK:DIRECTORY_MERGED[;DIRECTORY_UPPER:DIRECTORY_LOWER:DIRECTORY_WORK:DIRECTORY_MERGED]':
84 Specify container overlay mounts, see Documentation/filesystems/overlayfs.txt.
85
86 --cnt.overlay-options='OPTION1,OPTION2[;OPTION3,OPTION4]':
87 Specify container overlay mount options, see
88 Documentation/filesystems/overlayfs.txt.
89
90 --cnt.start='OPTION1[,OPTION2,...]':
91 Specify container start options, see container-start(1).
92
93 Examples
94 ========
95
96 Create example.net container using curl script:
97
98 sudo container get -n example.net -s curl
99
100 Create example.net container with the default download script and start it:
101
102 sudo container get,start -n example.net
103
104 See also
105 ========
106
107 | compute-tools(7),
108 | container(1).
109
110 Homepage
111 ========
112
113 More information about compute-tools and the Open Infrastructure project can be
114 found on the homepage (https://open-infrastructure.net).
115
116 Contact
117 =======
118
119 Bug reports, feature requests, help, patches, support and everything else are
120 welcome on the Open Infrastructure Software Mailing List
121 <[email protected]>.
122
123 Debian specific bugs can also be reported in the Debian Bug Tracking System
124 (https://bugs.debian.org).
125
126 Authors
127 =======
128
129 compute-tools were written by Daniel Baumann
130 <[email protected]> and others.