dangerzone-machine¶
dangerzone-machine manages the Podman machine that Dangerzone uses on macOS and Windows. A Podman machine is a small Linux virtual machine in which the sandbox containers run. Dangerzone creates and starts its own machine automatically, so this tool is mostly useful for troubleshooting or resetting a broken installation.
On Linux, Podman runs natively and no virtual machine is involved.
Location¶
| Platform | Command |
|---|---|
| macOS | /Applications/Dangerzone.app/Contents/MacOS/dangerzone-machine |
| Windows | C:\Program Files\Dangerzone\dangerzone-machine.exe |
| Source tree | poetry run dangerzone-machine |
Usage¶
The output below is generated from the code at the time the documentation was built, so it matches the installed version of the same release.
Usage: dangerzone-machine [OPTIONS] COMMAND [ARGS]...
Manage Dangerzone Podman machines.
Options:
--log-level [debug|info|warning|error|critical]
Set the logging level.
--help Show this message and exit.
Commands:
init Initialize a Dangerzone Podman machine.
list List Dangerzone Podman machines.
raw Run a raw Podman command.
remove Remove the Dangerzone Podman machine.
reset Reset all Podman machines.
start Start the Dangerzone Podman machine.
stop Stop the Dangerzone Podman machine.
Commands¶
init¶
Usage: dangerzone-machine init [OPTIONS]
Initialize a Dangerzone Podman machine.
Options:
--cpus INTEGER Number of CPUs to allocate.
--memory INTEGER Amount of memory in bytes.
--timezone TEXT Timezone for the machine.
--help Show this message and exit.
list¶
Usage: dangerzone-machine list [OPTIONS]
List Dangerzone Podman machines.
Options:
--help Show this message and exit.
raw¶
Usage: dangerzone-machine raw [OPTIONS]
Run a raw Podman command.
Options:
--help Show this message and exit.
remove¶
Usage: dangerzone-machine remove [OPTIONS]
Remove the Dangerzone Podman machine.
Options:
-f, --force Force removal without prompt.
--help Show this message and exit.
reset¶
Usage: dangerzone-machine reset [OPTIONS]
Reset all Podman machines.
Options:
-f, --force Force reset without prompt.
--help Show this message and exit.
start¶
Usage: dangerzone-machine start [OPTIONS]
Start the Dangerzone Podman machine.
Options:
--help Show this message and exit.
stop¶
Usage: dangerzone-machine stop [OPTIONS]
Stop the Dangerzone Podman machine.
Options:
--help Show this message and exit.
Notes on individual commands:
init,start, andstoprequire the Windows Subsystem for Linux on Windows. Usestopafter runningdangerzone-cli --linger.resetrunspodman machine reset. This is a destructive action: it removes every Podman machine on the system, including the Dangerzone one and the sandbox image stored in it, so Dangerzone installs both again on next start.rawruns a Podman command with the Podman binary and connection that Dangerzone uses. Everything afterrawis passed to Podman untouched.
Exit status¶
0 on success. On a Podman error, the tool prints a ❌ line and aborts with a non-zero status. Declining a confirmation prompt also aborts.
Examples¶
Check whether the machine is running:
Inspect the sandbox images known to the machine:
Start over from a clean state: