From 169329430855002d8393a91db6039e7296bb0315 Mon Sep 17 00:00:00 2001 From: spusuf <86286368+spusuf@users.noreply.github.com> Date: Tue, 3 Oct 2023 23:25:19 +1100 Subject: [PATCH] Create commands.md --- docs/commands.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 docs/commands.md diff --git a/docs/commands.md b/docs/commands.md new file mode 100644 index 0000000..2852032 --- /dev/null +++ b/docs/commands.md @@ -0,0 +1,35 @@ +Create a jail +`jlmkr create JAILNAME` + +Start a jail +`jlmkr start JAILNAME` + +Stop a jail +`jlmkr stop JAILNAME` + +Check jail status +`jlmkr status JAILNAME` + +Delete a jail and remove it's files (requires confirmation) +`jlmkr remove JAILNAME` + +See list of jails (including running, non running, distro, startup state, and IP) +`jlmkr list` + +See list of running jails +`machinectl list` + +Execute a command inside a jail from the TrueNAS shell +`jlmkr exec JAILNAME COMMAND` + +Execute a bash command inside a jail from the TrueNAS shell +`jlmkr exec JAILNAME bash -c 'BASHCOMMAND'` + +Switch into the jail's shell +`machinectl shell JAILNAME` + +View a jail's logs +`jlmkr log JAILNAME` + +Edit a jail's config +`jlmkr edit JAILNAME`