|
|
# I bims 1 Container vong Linux her.
|
|
|
|
|
|
```bash
|
|
|
// list containers
|
|
|
# list containers
|
|
|
$ lxc list
|
|
|
// launch a new container
|
|
|
# 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)
|
|
|
# launch a shell in the container (or any other tool)
|
|
|
$ lxc exec mycontainer /bin/bash
|
|
|
// snapshots
|
|
|
# snapshots
|
|
|
$ lxc snapshot mycontainer init
|
|
|
$ zfs list -r -t snapshot m18/lxd
|
|
|
// we break the container - dont do this!
|
|
|
# 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
|
... | ... | |