mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-18 16:21:32 +01:00
30 lines
1.0 KiB
ReStructuredText
30 lines
1.0 KiB
ReStructuredText
destroy
|
|
=======
|
|
|
|
Jails can be destroyed and thrown away just as easily as they were
|
|
created. Note: containers must be stopped before destroyed. Using
|
|
the `-a|--auto` option will automatically stop the jail before destroying it.
|
|
|
|
.. code-block:: shell
|
|
|
|
ishmael ~ # bastille destroy -a folsom
|
|
[folsom]:
|
|
folsom: removed
|
|
Deleting Container: folsom.
|
|
Note: containers console logs not destroyed.
|
|
/usr/local/bastille/logs/folsom_console.log
|
|
|
|
Release can be destroyed provided there are no child jails. The `-c|--no-cache` option
|
|
will retain the releas cache directory, if you choose to keep it.
|
|
|
|
.. code-block:: shell
|
|
|
|
ishmael ~ # bastille destroy help
|
|
Usage: bastille destroy [option(s)] [JAIL|RELEASE]
|
|
Options:
|
|
|
|
-a | --auto Auto mode. Start/stop jail(s) if required.
|
|
-f | --force Force unmount any mounted datasets when destroying a jail or release (ZFS only).
|
|
-c | --no-cache Do no destroy cache when destroying a release.
|
|
-x | --debug Enable debug mode.
|