Skip to Content
Linux Shell Scripting Cookbook - Third Edition
book

Linux Shell Scripting Cookbook - Third Edition

by Clif Flynt, Sarath Lakshman, Shantanu Tushar
May 2017
Beginner
552 pages
28h 47m
English
Packt Publishing
Content preview from Linux Shell Scripting Cookbook - Third Edition

How it works...

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Linux Shell Scripting - Second Edition

Mastering Linux Shell Scripting - Second Edition

Mokhtar Ebrahim, Andrew Mallett

Publisher Resources

ISBN: 9781785881985