From Fedora Project Wiki

Line 15: Line 15:


The 'debootstrap' is necessary in order to build Debian-based containers.
The 'debootstrap' is necessary in order to build Debian-based containers.
== Creating containers ==
Creating an Ubuntu container:
    # lxc-create -n lab1 -t ubuntu -- release precise

Revision as of 16:30, 27 July 2015

LXC (Linux Containers) is an operating system–level virtualization method for running multiple isolated Linux systems (containers) on a single control host.

Official project website: https://linuxcontainers.org


Getting started

Installation

On Fedora 21:

   $ sudo yum install lxc lxc-templates lxc-extra debootstrap

On Fedora 22

   $ sudo dnf install lxc lxc-templates lxc-extra debootstrap

The 'debootstrap' is necessary in order to build Debian-based containers.


Creating containers

Creating an Ubuntu container:

   # lxc-create -n lab1 -t ubuntu -- release precise