[NEW FEATURE] clone.sh

This commit is contained in:
hackacad
2020-03-04 10:52:17 +01:00
parent a3c40b2727
commit bc82da9aaa
3 changed files with 182 additions and 1 deletions

View File

@@ -44,6 +44,7 @@ Usage:
Available Commands:
bootstrap Bootstrap a FreeBSD release for container base.
cmd Execute arbitrary command on targeted container(s).
clone Clone an existing container.
console Console into a running container.
convert Convert a thin container into a thick container.
cp cp(1) files from host to targeted container(s).
@@ -925,6 +926,18 @@ Receiving zfs data stream...
Container 'folsom' imported successfully.
```
bastille clone
---------------
`bastille clone` will duplicate an existing container.
Please be aware that no host specific keys or hashes will we regenerated.
E. g. remove OpenSSH host keys to avoid duplicate host keys `rm /etc/ssh/ssh_host_*`
Usage: `bastille clone [TARGET] [NEWJAIL] [NEW_IPADRRESS]
```shell
ishmael ~ # bastille clone sourcejail targetjail 10.17.89.11
```
Example (create, start, console)
================================
This example creates, starts and consoles into the container.