= lxc =
Linux Containers

[[https://linuxcontainers.org/lxc/introduction/]]

== Ubuntu precise i386 container on Slackware 14.2 ==
{{{#!highlight bash
2016-11-08T23:39 root@nb200:/tmp
$ lxc-create -t download -n containerx -- -d ubuntu  -r precise -a i386
Setting up the GPG keyring
Downloading the image index
Downloading the rootfs
Downloading the metadata
The image cache is now ready
Unpacking the rootfs

---
You just created an Ubuntu container (release=precise, arch=i386, variant=default)

To enable sshd, run: apt-get install openssh-server

For security reason, container images ship without user accounts
and without a root password.

Use lxc-attach or chroot directly into the rootfs to set a root password
or create user accounts.
# start a container
lxc-start -n containerx -d
# list containers
lxc-ls --fancy
# session inside the container
lxc-attach -n httpd
}}}