= 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 # session in containerx root@containerx:/etc# cat /etc/os-release NAME="Ubuntu" VERSION="12.04.5 LTS, Precise Pangolin" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu precise (12.04.5 LTS)" VERSION_ID="12.04" }}}