LXC Conf Params
LXC Conf Params
LXC Conf Params
linuxcontainers.org
NAME
DESCRIPTION
1 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
2 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
CONFIGURATION
lxc.include
Specify the file to be included. The included file must
be in the same valid lxc configuration file format.
ARCHITECTURE
lxc.arch
Specify the architecture for the container.
3 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
HOSTNAME
lxc.uts.name
specify the hostname for the container
HALT SIGNAL
lxc.signal.halt
specify the signal used to halt the container
REBOOT SIGNAL
4 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
lxc.signal.reboot
specify the signal used to reboot the container
STOP SIGNAL
lxc.signal.stop
specify the signal used to stop the container
INIT COMMAND
lxc.execute.cmd
Absolute path from container rootfs to the binary to run
by default. This mostly makes sense for lxc-execute.
lxc.init.cmd
5 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
lxc.init.cwd
Absolute path inside the container to use as the
working directory.
INIT ID
Sets the UID/GID to use for the init system, and subsequent
commands. Note that using a non-root UID when booting a
system container will likely not work due to missing
privileges. Setting the UID/GID is mostly useful when
running application containers. Defaults to: UID(0), GID(0)
lxc.init.uid
UID to use for init.
lxc.init.gid
GID to use for init.
6 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
PROC
EPHEMERAL
lxc.ephemeral
The only allowed values are 0 and 1. Set this to 1 to
destroy a container on shutdown.
NETWORK
7 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
lxc.net
may be used without a value to clear all previous
network options.
lxc.net.[i].type
specify what kind of network virtualization to be used
for the container. Multiple networks can be specified by
using an additional index i after all lxc.net.* keys. For
example, lxc.net.0.type = veth and lxc.net.1.type =
veth specify two different networks of the same type.
All keys sharing the same index i will be treated as
belonging to the same network. For example,
lxc.net.0.link = br0 will belong to lxc.net.0.type.
Currently, the different virtualization types can be:
none: will cause the container to share the host's
network namespace. This means the host network
devices are usable in the container. It also means that
if both the container and host have upstart as init, 'halt'
in a container (for instance) will shut down the host.
8 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
9 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
lxc.net.[i].flags
Specify an action to do for the network.
up: activates the interface.
lxc.net.[i].link
Specify the interface to be used for real network traffic.
lxc.net.[i].mtu
Specify the maximum transfer unit for this interface.
lxc.net.[i].name
The interface name is dynamically allocated, but if
another name is needed because the configuration files
being used by the container use a generic name, eg.
eth0, this option will rename the interface in the
container.
lxc.net.[i].hwaddr
The interface mac address is dynamically allocated by
default to the virtual interface, but in some cases, this is
10 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
11 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
•
LXC_HOOK_TYPE: the hook type. This is
either 'up' or 'down'.
•
LXC_HOOK_SECTION: the section type 'net'.
•
LXC_NET_TYPE: the network type. This is
one of the valid network types listed here (e.g.
'macvlan', 'veth').
•
LXC_NET_PARENT: the parent device on the
host. This is only set for network types
'mavclan', 'veth', 'phys'.
•
LXC_NET_PEER: the name of the peer
device on the host. This is only set for 'veth'
network types. Note that this information is
only available when lxc.hook.version is set
to 1.
Whether this information is provided in the form of
12 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
lxc.net.[i].script.down
Add a configuration option to specify a script to be
executed before destroying the network used from the
host side.
In addition to the information available to all hooks. The
following information is provided to the script:
•
LXC_HOOK_TYPE: the hook type. This is
either 'up' or 'down'.
•
LXC_HOOK_SECTION: the section type 'net'.
•
LXC_NET_TYPE: the network type. This is
one of the valid network types listed here (e.g.
'macvlan', 'veth').
•
LXC_NET_PARENT: the parent device on the
host. This is only set for network types
'mavclan', 'veth', 'phys'.
13 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
•
LXC_NET_PEER: the name of the peer
device on the host. This is only set for 'veth'
network types. Note that this information is
only available when lxc.hook.version is set
to 1.
Whether this information is provided in the form of
environment variables or as arguments to the script
depends on the value of lxc.hook.version. If set to 1
then information is provided in the form of environment
variables. If set to 0 information is provided as
arguments to the script.
For stricter isolation the container can have its own private
instance of the pseudo tty.
lxc.pty.max
If set, the container will have a new pseudo tty
instance, making this private to it. The value specifies
the maximum number of pseudo ttys allowed for a pts
instance (this limitation is not implemented yet).
14 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
lxc.console.buffer.size
Setting this option instructs liblxc to allocate an in-
memory ringbuffer. The container's console output will
be written to the ringbuffer. Note that ringbuffer must be
at least as big as a standard page size. When passed a
value smaller than a single page size liblxc will allocate
a ringbuffer of a single page size. A page size is
usually 4kB. The keyword 'auto' will cause liblxc to
allocate a ringbuffer of 128kB. When manually
specifying a size for the ringbuffer the value should be
a power of 2 when converted to bytes. Valid size
prefixes are 'kB', 'MB', 'GB'. (Note that all conversions
are based on multiples of 1024. That means 'kb' ==
'KiB', 'MB' == 'MiB', 'GB' == 'GiB'.)
lxc.console.size
Setting this option instructs liblxc to place a limit on the
size of the console log file specified in
lxc.console.logfile. Note that size of the log file must
be at least as big as a standard page size. When
passed a value smaller than a single page size liblxc
will set the size of log file to a single page size. A page
size is usually 4kB. The keyword 'auto' will cause liblxc
to place a limit of 128kB on the log file. When manually
specifying a size for the log file the value should be a
15 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
16 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
lxc.tty.max
Specify the number of tty to make available to the
container.
17 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
lxc.tty.dir
Specify a directory under /dev under which to create
the container console devices. Note that LXC will move
any bind-mounts or device nodes for /dev/console into
this directory.
/DEV DIRECTORY
lxc.autodev
18 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
MOUNT POINTS
lxc.mount.fstab
specify a file location in the fstab format, containing the
mount information. The mount target location can and
in most cases should be a relative path, which will
become relative to the mounted container root. For
instance,
proc proc proc
19 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
nodev,noexec,nosuid 0 0
lxc.mount.entry
Specify a mount point corresponding to a line in the
fstab format. Moreover lxc supports mount propagation,
such as rslave or rprivate, and adds three additional
mount options. optional don't fail if mount does not
work. create=dir or create=file to create dir (or file)
when the point will be mounted. relative source path is
taken to be relative to the mounted container root. For
instance,
dev/null proc/kcore none bind,relative 0
0
.fi
lxc.mount.auto
specify which standard kernel file systems should be
20 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
21 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
22 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
23 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
24 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
25 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
lxc.rootfs.path
specify the root file system for the container. It can be
an image file, a directory or a block device. If not
specified, the container shares its root file system with
the host.
For directory or simple block-device backed containers,
a pathname can be used. If the rootfs is backed by a
nbd device, then nbd:file:1 specifies that file should be
attached to a nbd device, and partition 1 should be
mounted as the rootfs. nbd:file specifies that the nbd
device itself should be mounted. overlayfs:/lower:
/upper specifies that the rootfs should be an overlay
with /upper being mounted read-write over a read-only
mount of /lower. For overlay multiple /lower directories
can be specified. loop:/file tells lxc to attach /file to a
loop device and mount the loop device.
lxc.rootfs.mount
where to recursively bind lxc.rootfs.path before
pivoting. This is to ensure success of the pivot_root(8)
syscall. Any directory suffices, the default should
generally work.
lxc.rootfs.options
extra mount options to use when mounting the rootfs.
26 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
CONTROL GROUP
lxc.cgroup.[controller name]
Specify the control group value to be set on a legacy
cgroup hierarchy. The controller name is the literal
name of the control group. The permitted names and
the syntax of their values is not dictated by LXC,
instead it depends on the features of the Linux kernel
running at the time the container is started, eg.
lxc.cgroup.cpuset.cpus
lxc.cgroup2.[controller name]
Specify the control group value to be set on the unified
cgroup shierarchy. The controller name is the literal
name of the control group. The permitted names and
the syntax of their values is not dictated by LXC,
instead it depends on the features of the Linux kernel
running at the time the container is started, eg.
lxc.cgroup2.memory.high
lxc.cgroup.dir
specify a directory or path in which the container's
cgroup will be created. For example, setting
lxc.cgroup.dir = my-cgroup/first for a container
named "c1" will create the container's cgroup as a sub-
cgroup of "my-cgroup". For example, if the user's
27 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
CAPABILITIES
lxc.cap.drop
Specify the capability to be dropped in the container. A
single line defining several capabilities with a space
separation is allowed. The format is the lower case of
the capability definition without the "CAP_" prefix, eg.
CAP_SYS_MODULE should be specified as
sys_module. See capabilities(7). If used with no value,
lxc will clear any drop capabilities specified up to this
point.
lxc.cap.keep
Specify the capability to be kept in the container. All
other capabilities will be dropped. When a special value
of "none" is encountered, lxc will clear any keep
capabilities specified up to this point. A value of "none"
alone can be used to drop all capabilities.
28 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
NAMESPACES
lxc.namespace.clone
Specify namespaces which the container is supposed
to be created with. The namespaces to create are
specified as a space separated list. Each namespace
must correspond to one of the standard namespace
identifiers as seen in the /proc/PID/ns directory. When
lxc.namespace.clone is not explicitly set all
namespaces supported by the kernel and the current
configuration will be used.
To create a new mount, net and ipc namespace set
lxc.namespace.clone=mount net ipc.
lxc.namespace.keep
Specify namespaces which the container is supposed
to inherit from the process that created it. The
namespaces to keep are specified as a space
separated list. Each namespace must correspond to
one of the standard namespace identifiers as seen in
the /proc/PID/ns directory. The lxc.namespace.keep is
a blacklist option, i.e. it is useful when enforcing that
containers must keep a specific set of namespaces.
To keep the network, user and ipc namespace set
lxc.namespace.keep=user net ipc.
29 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
lxc.namespace.share.[namespace identifier]
Specify a namespace to inherit from another container
or process. The [namespace identifier] suffix needs to
be replaced with one of the namespaces that appear in
the /proc/PID/ns directory.
To inherit the namespace from another process set the
lxc.namespace.share.[namespace identifier] to the
PID of the process, e.g. lxc.namespace.share.net=42.
30 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
RESOURCE LIMITS
The soft and hard resource limits for the container can be
changed. Unprivileged containers can only lower them.
Resources which are not explicitly specified will be
inherited.
lxc.prlimit.[limit name]
Specify the resource limit to be set. A limit is specified
as two colon separated values which are either
numeric or the word 'unlimited'. A single value can be
used as a shortcut to set both soft and hard limit to the
same value. The permitted names the "RLIMIT_"
resource names in lowercase without the "RLIMIT_"
prefix, eg. RLIMIT_NOFILE should be specified as
"nofile". See setrlimit(2). If used with no value, lxc will
clear the resource limit specified up to this point. A
resource with no explicitly configured limitation will be
inherited from the process starting up the container.
SYSCTL
31 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
APPARMOR PROFILE
lxc.apparmor.profile
Specify the apparmor profile under which the container
should be run. To specify that the container should be
unconfined, use
lxc.apparmor.profile = unconfined
lxc.apparmor.profile = unchanged
lxc.apparmor.allow_incomplete
Apparmor profiles are pathname based. Therefore
32 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
SELINUX CONTEXT
lxc.selinux.context
Specify the SELinux context under which the container
should be run or unconfined_t. For example
lxc.selinux.context =
system_u:system_r:lxc_t:s0:c22
33 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
SECCOMP CONFIGURATION
2
blacklist
mknod errno 0
lxc.seccomp.profile
Specify a file containing the seccomp configuration to
load before the container starts.
34 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
PR_SET_NO_NEW_PRIVS
lxc.no_new_privs
Specify whether the PR_SET_NO_NEW_PRIVS flag
should be set for the container. Set to 1 to activate.
UID MAPPINGS
35 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
lxc.idmap
Four values must be provided. First a character, either
'u', or 'g', to specify whether user or group ids are being
mapped. Next is the first userid as seen in the user
namespace of the container. Next is the userid as seen
on the host. Finally, a range indicating the number of
consecutive ids to map.
CONTAINER HOOKS
•
Container name.
•
Section (always 'lxc').
•
The hook type (i.e. 'clone' or 'pre-mount').
•
Additional arguments. In the case of the clone hook,
any extra arguments passed will appear as further
arguments to the hook. In the case of the stop hook,
paths to filedescriptors for each of the container's
36 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
•
LXC_CGNS_AWARE: indicator whether the container
is cgroup namespace aware.
•
LXC_CONFIG_FILE: the path to the container
configuration file.
•
LXC_HOOK_TYPE: the hook type (e.g. 'clone', 'mount',
'pre-mount'). Note that the existence of this
environment variable is conditional on the value of
lxc.hook.version. If it is set to 1 then
LXC_HOOK_TYPE will be set.
•
LXC_HOOK_SECTION: the section type (e.g. 'lxc',
'net'). Note that the existence of this environment
variable is conditional on the value of
lxc.hook.version. If it is set to 1 then
LXC_HOOK_SECTION will be set.
•
LXC_HOOK_VERSION: the version of the hooks. This
value is identical to the value of the container's
lxc.hook.version config item. If it is set to 0 then old-
style hooks are used. If it is set to 1 then new-style
hooks are used.
•
LXC_LOG_LEVEL: the container's log level.
37 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
•
LXC_NAME: is the container's name.
•
LXC_[NAMESPACE IDENTIFIER]_NS: path under
/proc/PID/fd/ to a file descriptor referring to the
container's namespace. For each preserved
namespace type there will be a separate environment
variable. These environment variables will only be set if
lxc.hook.version is set to 1.
•
LXC_ROOTFS_MOUNT: the path to the mounted root
filesystem.
•
LXC_ROOTFS_PATH: this is the lxc.rootfs.path entry
for the container. Note this is likely not where the
mounted rootfs is to be found, use
LXC_ROOTFS_MOUNT for that.
•
LXC_SRC_NAME: in the case of the clone hook, this is
the original container's name.
lxc.hook.version
To pass the arguments in new style via environment
variables set to 1 otherwise set to 0 to pass them as
arguments. This setting affects all hooks arguments
that were traditionally passed as arguments to the
38 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
39 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
40 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
LXC_NAME
The LXC name of the container. Useful for logging
messages in common log environments. [-n]
LXC_CONFIG_FILE
Host relative path to the container configuration file.
This gives the container to reference the original, top
level, configuration file for the container in order to
locate any additional configuration information not
otherwise made available. [-f]
LXC_CONSOLE
The path to the console output of the container if not
NULL. [-c] [lxc.console.path]
41 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
LXC_CONSOLE_LOGPATH
The path to the console log output of the container if
not NULL. [-L]
LXC_ROOTFS_MOUNT
The mount location to which the container is initially
bound. This will be the host relative path to the
container rootfs for the container instance being started
and is where changes should be made for that
instance. [lxc.rootfs.mount]
LXC_ROOTFS_PATH
The host relative path to the container root which has
been mounted to the rootfs.mount location.
[lxc.rootfs.path]
LXC_SRC_NAME
Only for the clone hook. Is set to the original container
name.
LXC_TARGET
Only for the stop hook. Is set to "stop" for a container
shutdown or "reboot" for a container reboot.
LXC_CGNS_AWARE
If unset, then this version of lxc is not aware of cgroup
namespaces. If set, it will be set to 1, and lxc is aware
of cgroup namespaces. Note this does not guarantee
that cgroup namespaces are enabled in the kernel.
This is used by the lxcfs mount hook.
LOGGING
42 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
lxc.log.level
The level at which to log. The log level is an integer in
the range of 0..8 inclusive, where a lower number
means more verbose debugging. In particular 0 =
trace, 1 = debug, 2 = info, 3 = notice, 4 = warn, 5 =
error, 6 = critical, 7 = alert, and 8 = fatal. If unspecified,
the level defaults to 5 (error), so that only errors and
above are logged.
Note that when a script (such as either a hook script or
a network interface up or down script) is called, the
script's standard output is logged at level 1, debug.
lxc.log.file
The file to which logging info should be written.
lxc.log.syslog
Send logging info to syslog. It respects the log level
defined in lxc.log.level. The argument should be the
syslog facility to use, valid ones are: daemon, local0,
local1, local2, local3, local4, local5, local5, local6,
43 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
local7.
AUTOSTART
lxc.start.auto
Whether the container should be auto-started. Valid
values are 0 (off) and 1 (on).
lxc.start.delay
How long to wait (in seconds) after the container is
started before starting the next one.
lxc.start.order
An integer used to sort the containers when auto-
starting a series of containers at once.
lxc.monitor.unshare
If not zero the mount namespace will be unshared from
the host before initializing the container (before running
any pre-start hooks). This requires the
CAP_SYS_ADMIN capability at startup. Default is 0.
lxc.group
A multi-value key (can be used multiple times) to put
the container in a container group. Those groups can
then be used (amongst other things) to start a series of
related containers.
44 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
CONTAINER ENVIRONMENT
45 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
lxc.environment
Specify an environment variable to pass into the
container. Example:
lxc.environment =
APP_ENV=production
lxc.environment =
SYSLOG_SERVER=192.0.2.42
lxc.environment = PATH
EXAMPLES
NETWORK
46 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
renamed to eth0.
lxc.uts.name = myhostname
lxc.net.0.type = veth
lxc.net.0.flags = up
lxc.net.0.link = br0
lxc.net.0.name = eth0
lxc.net.0.hwaddr = 4a:49:43:49:79:bf
lxc.net.0.ipv4.address = 10.2.3.5/24
10.2.3.255
lxc.net.0.ipv6.address =
2003:db8:1:0:214:1234:fe0b:3597
UID/GID MAPPING
This configuration will map both user and group ids in the
range 0-9999 in the container to the ids 100000-109999 on
the host.
lxc.idmap = u 0 100000 10000
lxc.idmap = g 0 100000 10000
CONTROL GROUP
47 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
lxc.cgroup.cpuset.cpus = 0,1
lxc.cgroup.cpu.shares = 1234
lxc.cgroup.devices.deny = a
lxc.cgroup.devices.allow = c 1:3 rw
lxc.cgroup.devices.allow = b 8:0 rw
COMPLEX CONFIGURATION
48 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
lxc.net.1.ipv4.address =
192.168.10.125/24
lxc.net.1.ipv6.address =
2003:db8:1:0:214:1234:fe0b:3596
lxc.net.2.type = phys
lxc.net.2.flags = up
lxc.net.2.link = dummy0
lxc.net.2.hwaddr = 4a:49:43:49:79:ff
lxc.net.2.ipv4.address = 10.2.3.6/24
lxc.net.2.ipv6.address =
2003:db8:1:0:214:1234:fe0b:3297
lxc.cgroup.cpuset.cpus = 0,1
lxc.cgroup.cpu.shares = 1234
lxc.cgroup.devices.deny = a
lxc.cgroup.devices.allow = c 1:3 rw
lxc.cgroup.devices.allow = b 8:0 rw
lxc.mount.fstab = /etc/fstab.complex
lxc.mount.entry = /lib
/root/myrootfs/lib none ro,bind 0 0
lxc.rootfs.path = dir:/mnt
/rootfs.complex
lxc.cap.drop = sys_module mknod
setuid net_raw
lxc.cap.drop = mac_override
SEE ALSO
49 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
SEE ALSO
AUTHOR
Index
NAME
DESCRIPTION
CONFIGURATION
ARCHITECTURE
HOSTNAME
HALT SIGNAL
REBOOT SIGNAL
STOP SIGNAL
INIT COMMAND
INIT WORKING DIRECTORY
INIT ID
PROC
EPHEMERAL
NETWORK
50 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
51 of 52 03/05/2018, 10:42
Linux Containers - LXC - Manpages about:reader?url=https://linuxcontainers.org/lx...
SEE ALSO
AUTHOR
52 of 52 03/05/2018, 10:42