Debian Codegraph @

share/man/container-build-debootstrap.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-build-debootstrap
22 ===========================
23
24 -------------------------------------------------------------------
25 Build a basic Debian based container with debootstrap or mmdebstrap
26 -------------------------------------------------------------------
27
28 :manual section: 1
29 :manual group: Open Infrastructure
30
31 Synopsis
32 ========
33
34 | **container build -s debootstrap** ['OPTIONS']
35 | **cnt b -s debootstrap** ['OPTIONS']
36
37 | **container build -s mmdebstrap** ['OPTIONS']
38 | **cnt b -s mmdebstrap** ['OPTIONS']
39
40 Description
41 ===========
42
43 The debootstrap container build script uses debootstrap(8) or mmdebstrap(1)
44 to build a Debian based container.
45
46 This script builds a pure Debian system with three modificiations:
47
48 * apt cache of packages downloaded during debootstrap is cleaned
49 * hostname is set (container name) in /etc/hostname
50 * root password is set (user specified or 16 random characters)
51
52 Options
53 =======
54
55 The following script options are available:
56
57 -n, --name='NAME':
58 Specify container name.
59
60 -a, --architecture='ARCHITECTURE':
61 Specify the Debian architecture, defaults to the host systems architecture.
62
63 -d, --distribution='DISTRIBUTION':
64 Specify the Debian distribution, defaults to 'trixie'.
65
66 -m, --mirror='MIRROR':
67 Specify the Debian mirror, defaults to 'https://deb.debian.org/debian'.
68
69 -p, --root-password='PASSWORD':
70 Specify the root password, defaults to a random 16 character password.
71
72 Examples
73 ========
74
75 Build a Debian 13 (trixie) based container with same architecture as the host
76 system using debootstrap:
77
78 sudo container build -s debootstrap -n trixie.example.net
79
80 Build a Debian 13 (trixie) based container with different architecture as the
81 host system using mmdebstrap:
82
83 sudo container build -s mmdebstrap -n trixie-i386.example.net -- -a i386
84
85 See also
86 ========
87
88 | compute-tools(7),
89 | container(1).
90
91 Homepage
92 ========
93
94 More information about compute-tools and the Open Infrastructure project can be
95 found on the homepage (https://open-infrastructure.net).
96
97 Contact
98 =======
99
100 Bug reports, feature requests, help, patches, support and everything else are
101 welcome on the Open Infrastructure Software Mailing List
102 <[email protected]>.
103
104 Debian specific bugs can also be reported in the Debian Bug Tracking System
105 (https://bugs.debian.org).
106
107 Authors
108 =======
109
110 compute-tools were written by Daniel Baumann
111 <[email protected]> and others.