Here are the general instructions on how to install LXC (Linux Container) on some of the most popular Linux distributions. Note that you will need to open Terminal in order to execute these commands.
1. Ubuntu:
$ sudo apt-get update $ sudo apt-get install lxc1. Debian:
$ sudo apt-get update $ sudo apt-get install lxc1. Fedora:
$ sudo dnf update $ sudo dnf install lxc lxc-templates1. CentOS:
Firstly you need to install epel-release repository then install LXC. $ sudo yum update $ sudo yum install epel-release $ sudo yum install lxc lxc-templates1. Arch Linux:
LXC is available in the community repository. $ pacman -Syu $ pacman -S lxcHow to use it?
Test if the installation was successful by running a test command: $ lxc-checkconfig Now you can use LXC to create, control, connect to, or shutdown system containers. For more detailed information, please refer to the LXC Linux Containers User Guide: https://linuxcontainers.org/lxc/getting-started/Please replace “sudo” with “as root” if you don’t have sudo installed.
Also, be sure to replace all instances of “$” with the command prompt for your specific Linux distribution. The “$” is simply a generic placeholder for the command prompt and is not part of the actual command.