| 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-curl |
| 22 |
================== |
| 23 |
|
| 24 |
--------------------------------------------------------------------------- |
| 25 |
Download a Debian based container by downloading a tarball over the network |
| 26 |
--------------------------------------------------------------------------- |
| 27 |
|
| 28 |
:manual section: 1 |
| 29 |
:manual group: Open Infrastructure |
| 30 |
|
| 31 |
Synopsis |
| 32 |
======== |
| 33 |
|
| 34 |
| **container get -s curl** ['OPTIONS'] |
| 35 |
|
| 36 |
Description |
| 37 |
=========== |
| 38 |
|
| 39 |
The curl container download script uses curl(1) to download a tarball over the |
| 40 |
network to create a Debian based container. |
| 41 |
|
| 42 |
Depending on the tarball this script otherwise creates a pure Debian system |
| 43 |
with three modificiations: |
| 44 |
|
| 45 |
* hostname is set (container name) in /etc/hostname |
| 46 |
* systemd machine-id is generated in /etc/machine-id |
| 47 |
* root password is set (user specified or 16 random characters) |
| 48 |
|
| 49 |
Container images |
| 50 |
---------------- |
| 51 |
|
| 52 |
compute-tools will download tarballs from a server expecting that the images are |
| 53 |
tarballs with either gzip, lzip, xz, or no compression. See container-images.sh |
| 54 |
as an example on how to create your own container images. |
| 55 |
|
| 56 |
Options |
| 57 |
======= |
| 58 |
|
| 59 |
The following script options are available: |
| 60 |
|
| 61 |
-n, --name='NAME': |
| 62 |
Specify container name. |
| 63 |
|
| 64 |
-a, --architecture='ARCHITECTURE': |
| 65 |
Specify container architecture. |
| 66 |
|
| 67 |
--clean: |
| 68 |
Remove container tarball after successful download. |
| 69 |
|
| 70 |
-p, --root-password='PASSWORD': |
| 71 |
Specify the root password, defaults to a random 16 character password. |
| 72 |
|
| 73 |
--server='SERVER': |
| 74 |
Specify the image server to download from, defaults to |
| 75 |
'https://get.open-infrastructure.net/system/container/debian'. |
| 76 |
|
| 77 |
--setup='SETUP': |
| 78 |
Specify the setup image name to download, defaults to the value specified |
| 79 |
through --system using the setup.tar.${COMPRESSION} suffix (where |
| 80 |
${COMPRESSION} is either lz, xz, or gz depending on compressor availability on |
| 81 |
the host system). |
| 82 |
|
| 83 |
--system='SYSTEM': |
| 84 |
Specify the system image name to download, defaults to |
| 85 |
debian-trixie-current_${ARCHITECTURE}.system.tar.${COMPRESSION} (where |
| 86 |
${ARCHITECTURE} is the host systems architecture and ${COMPRESSION} either |
| 87 |
lz, xz, or gz depending on compressor availability on the host system). |
| 88 |
|
| 89 |
Examples |
| 90 |
======== |
| 91 |
|
| 92 |
Download a Debian 13 (trixie) based container with same architecture as the host |
| 93 |
system: |
| 94 |
|
| 95 |
sudo container get -s curl -n trixie.example.net |
| 96 |
|
| 97 |
Download a Debian 13 (trixie) based container with different architecture as the |
| 98 |
host system: |
| 99 |
|
| 100 |
sudo container get -s curl -n trixie-i386.example.net -- --system debian-trixie-current_i386.system.tar.xz |
| 101 |
|
| 102 |
Files |
| 103 |
===== |
| 104 |
|
| 105 |
The following files are used: |
| 106 |
|
| 107 |
/etc/compute-tools/config: |
| 108 |
Container configuration files. |
| 109 |
|
| 110 |
/usr/share/compute-tools/get-scripts: |
| 111 |
Container download scripts. |
| 112 |
|
| 113 |
/usr/share/doc/compute-tools: |
| 114 |
Container documentation. |
| 115 |
|
| 116 |
/var/lib/machines: |
| 117 |
Container directory. |
| 118 |
|
| 119 |
/var/cache/container: |
| 120 |
Container cache directory. |
| 121 |
|
| 122 |
See also |
| 123 |
======== |
| 124 |
|
| 125 |
| compute-tools(7), |
| 126 |
| container(1). |
| 127 |
|
| 128 |
Homepage |
| 129 |
======== |
| 130 |
|
| 131 |
More information about compute-tools and the Open Infrastructure project can be |
| 132 |
found on the homepage (https://open-infrastructure.net). |
| 133 |
|
| 134 |
Contact |
| 135 |
======= |
| 136 |
|
| 137 |
Bug reports, feature requests, help, patches, support and everything else are |
| 138 |
welcome on the Open Infrastructure Software Mailing List |
| 139 |
<[email protected]>. |
| 140 |
|
| 141 |
Debian specific bugs can also be reported in the Debian Bug Tracking System |
| 142 |
(https://bugs.debian.org). |
| 143 |
|
| 144 |
Authors |
| 145 |
======= |
| 146 |
|
| 147 |
compute-tools were written by Daniel Baumann |
| 148 |
<[email protected]> and others. |