Logo
Color-Of-Code
  Home   All tags   Terms and Conditions

Linux Containers

December 10, 2019

LXC - Linux containers

Ubuntu setup

Install basic support tools:

apt-get install lxc

Check the configuration:

lxc-checkconfig

List containers:

lxc-ls --fancy

Access console to a container:

lxc-console

Templates can be found under:

/usr/share/lxc/templates

Small and efficient and secure template lxc-alpine:

alpine

Python3 api

There is a nice python3 api that can be used to automate the setup of LXC.

It is actually a wrapper for the C api.

LXC Web Panel

In order to control the LXCs in a user friendly manner, there is a web panel: