Debian Codegraph @

share/man/container-run.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-run
22 =============
23
24 -----------------------------------------
25 Execute commands in a container namespace
26 -----------------------------------------
27
28 :manual section: 1
29 :manual group: Open Infrastructure
30
31 Synopsis
32 ========
33
34 | **container run** ['OPTIONS'] -- 'COMMAND'\|"COMMANDS"
35 | **cnt r** ['OPTIONS'] -- 'COMMAND'\|"COMMANDS"
36
37 Description
38 ===========
39
40 The **container run** command executes arbitrary commands as root in a container
41 namespace.
42
43 Options
44 =======
45
46 The following **container run** options are available:
47
48 -n, --name='NAME':
49 Specify container name. Specifying 'ALL' will start all stopped container.
50
51 Examples
52 ========
53
54 Run 'hostname' in example.net container:
55
56 sudo container run -n example.net -- hostname
57
58 Create and delete a file in example.net container:
59
60 sudo container run -n example.net -- 'touch /tmp/foo && rm -f /tmp/foo'
61
62 See also
63 ========
64
65 | compute-tools(7),
66 | container(1).
67
68 Homepage
69 ========
70
71 More information about compute-tools and the Open Infrastructure project can be
72 found on the homepage (https://open-infrastructure.net).
73
74 Contact
75 =======
76
77 Bug reports, feature requests, help, patches, support and everything else are
78 welcome on the Open Infrastructure Software Mailing List
79 <[email protected]>.
80
81 Debian specific bugs can also be reported in the Debian Bug Tracking System
82 (https://bugs.debian.org).
83
84 Authors
85 =======
86
87 compute-tools were written by Daniel Baumann
88 <[email protected]> and others.