... | ... | @@ -3,16 +3,14 @@ |
|
|
```bash
|
|
|
// list containers
|
|
|
# lxc list
|
|
|
|
|
|
// launch a new container
|
|
|
# lxc launch images:ubuntu/16.04 mycontainer # ubuntu here, but anything goes
|
|
|
// launch a shell in the container (or any other tool)
|
|
|
# lxc exec mycontainer /bin/bash
|
|
|
|
|
|
// snapshots
|
|
|
# lxc snapshot mycontainer init
|
|
|
# zfs list -r -t snapshot m18/lxd
|
|
|
// don't do this it breaks the container
|
|
|
// we break the container - dont do this!
|
|
|
# lxc exec mycontainer -- /bin/find /etc -delete
|
|
|
# lxc exec mycontainer -- /bin/ls /etc
|
|
|
/bin/ls: cannot access '/etc': No such file or directory
|
... | ... | |