CONTAINER-RUN(1)

πŸ“¦
this version Β· 5 versions
, in debian bookworm, ubuntu noble

✨ container-run(1) β€” the manual page, but make it cute ✨

okay bestie, welcome to the CONTAINER-RUN(1) page from the General Commands Manual β€” yes that's the manual name, no I will not be normal about it πŸ’…


🌸 NAME 🌸

container-run β€” execute commands in a container namespace 🫢


πŸŽ€ SYNOPSIS πŸŽ€

container run ['OPTIONS'] -- 'COMMAND'|"COMMANDS"
cnt r ['OPTIONS'] -- 'COMMAND'|"COMMANDS"

πŸ’– DESCRIPTION πŸ’–

so here's the tea: the container run command executes arbitrary commands as root inside a container namespace. yeah. root. inside the namespace. main character energy fr fr πŸ‘‘


✨ OPTIONS ✨

here's the full lineup of container run options, and yes there is literally just one, she's an icon, she's everything:

  • -n, --name='NAME' β€” specify the container name. and listen, if you pass 'ALL', it will start all stopped container. (their grammar, not mine, but the facts are the facts πŸ“)

🌈 EXAMPLES 🌈

run hostname in the example.net container:

sudo container run -n example.net -- hostname

create and delete a file in the example.net container:

sudo container run -n example.net -- 'touch /tmp/foo && rm -f /tmp/foo'

no cap, that second one is a whole little two-for-one in a single string. obsessed 😭


πŸ¦‹ SEE ALSO πŸ¦‹


🌐 HOMEPAGE 🌐

want more info about compute-tools and the Open Infrastructure project? it's all on the homepage at https://open-infrastructure.net ⭐


πŸ’Œ CONTACT πŸ’Œ

bug reports, feature requests, help, patches, support and literally everything else are welcome on the Open Infrastructure Software Mailing List at software@lists.open-infrastructure.net. come through, we love to see it 🫢

Debian specific bugs can also be reported in the Debian Bug Tracking System at https://bugs.debian.org. periodt πŸ’œ


πŸ‘‘ AUTHORS πŸ‘‘

compute-tools were written by Daniel Baumann <daniel.baumann@open-infrastructure.net> and others. legends only ✨


okay that's the whole page, you're all caught up bestie 🧚

and that's a wrap from Open Infrastructure, this is compute-tools, page CONTAINER-RUN(1) β€” mwah, go run some commands πŸ’–

πŸ“¦ where this page comes from