Home OpenStack-Ansible Installation Guide
Containers provide operating-system level virtualization by enhancing the concept of chroot environments, which isolate resources and file systems for a particular group of processes without the overhead and complexity of virtual machines. They access the same kernel, devices, and file systems on the underlying host and provide a thin operational layer built around a set of rules.
The Linux Containers (LXC) project implements operating system level virtualization on Linux using kernel namespaces and includes the following features:
Useful commands:
List containers and summary information such as operational state and network configuration:
# lxc-ls --fancy
Show container details including operational state, resource utilization, and veth pairs:
# lxc-info --name container_name
Start a container:
# lxc-start --name container_name
Attach to a container:
# lxc-attach --name container_name
Stop a container:
# lxc-stop --name container_name