|
|
# I bims 1 Container vong Linux her.
|
|
|
|
|
|
# lxc list
|
|
|
# lxc launch ubuntu:16.04 mycontainer # ubuntu here, but anything goes
|
|
|
# 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 m18/lxd
|
|
|
// don't do this it breaks the container
|
|
|
# lxc exec mycontainer -- /bin/find /etc -delete
|
|
|
# lxc exec mycontainer -- /bin/ls /etc
|
|
|
/bin/ls: cannot access '/etc': No such file or directory
|
|
|
# lxc restore mycontainer init
|
|
|
// everything is fine
|
|
|
|
|
|
|
|
|
https://github.com/lxc/lxd/blob/master/doc/index.md
|
|
|
|
... | ... | |