May 2017
Beginner
552 pages
28h 47m
English
The container created by the lxc-create command is a directory tree that includes the configuration options and root filesystem for the container. Privileged containers are constructed under /var/lib/lxc. Nonprivileged containers are stored under $HOME/.local/lxc:
$ ls /var/lib/lxc/CONTAINERNAME
config rootfs
You can examine or modify a container's configuration by editing the config file in the container's top directory:
# vim /var/lib/lxc/CONTAINERNAME/config
The rootfs folder contains a root filesystem for the container. This is the root (/) folder of a running container:
# ls /var/lib/lxc/CONTAINERNAME/rootfs
bin boot cdrom dev etc home lib media mnt proc
root run sbin sys tmp usr var
You can populate a container ...