LXC usage examples


Install


apt install apparmor apparmor-utils debootstrap lxc-templates lxc

Create new container


lxc-create -t debian -n NAME

Run


Foreground (debug)


lxc-start -n NAME -F

Background


lxc-start -n NAME -d

Login


lxc-attach -n NAME

Stop


lxc-stop -n NAME


/en/