Add specified device to the container.
Add specified device to the container.
Full path of the device.
Alternate path in the container (or \p NULL to use src_path).
true on success, else false.
This method is not implemented yet
Add specified netdev to the container.
Add specified netdev to the container.
name of the net device.
name of the other net device.
true on success, else false.
FIX THIS DOCS IN LIBLXC AND PUT HERE
This method is not implemented yet
Checkpoint a container.
Checkpoint a container.
The directory to dump the container to.
Whether or not to stop the container after checkpointing.
Enable criu's verbose logs.
true on success, else false.
Completely clear the containers in-memory configuration.
Clear a configuration item.
Clear a configuration item.
Name of option to clear.
true on success, else false.
Copy a stopped container.
Copy a stopped container.
New name for the container. If NULL, the same name is used and a new lxcPath MUST be specified.
Optionally force the cloned bdevtype to a specified plugin. By default the original is used (subject to snapshot requirements).
Additional \c LXC_CLONE* flags to change the cloning behaviour:
lxcpath in which to create the new container. If NULL, the original container's lxcpath will be used.
Information about how to create the new storage (i.e. fstype and fsdata).
In case of a block device backing store, an optional size. If \c 0, the original backing store's size will be used if possible. Note this only applies to the rootfs. For any other filesystems, the original size will be duplicated.
Additional arguments to pass to the clone hook script.
Newly-allocated copy of container, or NULL on error.
Return current config file name.
Return current config file name.
config file name, or null on error.
This method is not implemented yet
Create a container.
Create a container.
Template to execute to instantiate the root filesystem and adjust the configuration.
Backing store type to use (if \c NULL, \c dir will be used).
Additional parameters for the backing store (for example LVM volume group to use).
LXC_CREATE_* options (currently only \ref LXC_CREATE_QUIET is supported).
Arguments to pass to the template
true on success, else false.
Delete the container.
Delete the container.
true on success, else false.
Container must be stopped and have no dependent snapshots.
Delete the container and all its snapshots.
Delete the container and all its snapshots.
true on success, else false.
Container must be stopped.
Remove specified device from the container.
Remove specified device from the container.
name of the net device.
name of the other net device.
true on success, else false.
FIX THIS DOCS IN LIBLXC AND PUT HERE
Freeze running container.
Freeze running container.
true on success, else false.
Retrieve the specified cgroup subsystem value for the container.
Retrieve the specified cgroup subsystem value for the container.
cgroup subsystem to consider, like 'blkio.time'.
subSystem value or null on error.
Retrieve the value of a config item.
Retrieve the value of a config item.
Name of option to get.
the item or null on error.
Determine full path to the containers configuration file.
Determine full path to the containers configuration file.
Each container can have a custom configuration path. However by default it will be set to either the LXCPATH configure variable, or the lxcpath value in the LXC_GLOBAL_CONF configuration file (i.e. /etc/lxc/lxc.conf). The value for a specific container can be changed using #setConfigPath. There is no other way to specify this in general at the moment.
string representing full path to configuration file.
Obtain a list of network interfaces.
Obtain a list of network interfaces.
Array of network interfaces, or null on error.
Determine the list of container IP addresses.
Determine the list of container IP addresses.
Network interface name to consider.
Network family (for example "inet", "inet6").
IPv6 scope id (ignored if family is not "inet6").
Array of network interface addresses, or null on error.
Retrieve a list of config item keys given a key prefix.
Retrieve a list of config item keys given a key prefix.
Name of option to get.
List of items for a given key or null on error.
Returns last error.
Returns last error.
Last error that occurred.
Retrieve the value of a config item from running container.
Retrieve the value of a config item from running container.
Name of option to get.
the item or null on error.
Determine process ID of the containers init process.
Determine process ID of the containers init process.
pid of init process as seen from outside the container.
Determine if /var/lib/lxc/[name]/config exists.
Determine if /var/lib/lxc/[name]/config exists.
true if container is defined, else false.
Determine if container is running.
Determine if container is running.
true if running, else false.
Load the specified configuration for the container.
Load the specified configuration for the container.
Optional alternative configuration file.
true on success, else false.
Determine if the caller may control the container.
Determine if the caller may control the container.
false if there is a control socket for the container monitor and the caller may not access it, otherwise returns true.
Request the container reboot by sending it SIGINT.
Request the container reboot by sending it SIGINT.
true if reboot request successful, else false.
Remove specified device from the container.
Remove specified device from the container.
Full path of the device.
Alternate path in the container (or \p NULL to use src_path).
true on success, else false.
Rename a container
Rename a container
New name to be used for the container.
true on success, else false.
Restore a container from a checkpoint.
Restore a container from a checkpoint.
The directory to dump the container to.
Enable criu's verbose logs.
true on success, else false.
Save configuration to a file.
Save configuration to a file.
Optional alternative configuration file.
true on success, else false.
Set the specified cgroup subsystem value for the container.
Set the specified cgroup subsystem value for the container.
cgroup subsystem to consider, like 'blkio.time'.
Value to set for subSystem.
true on success, else false.
Set a key/value configuration option.
Set a key/value configuration option.
Name of option to set.
Value to be set.
true on success, else false.
Set the full path to the containers configuration file.
Set the full path to the containers configuration file.
Path to configuration file.
true on success, else false.
Request the container shutdown by sending it SIGPWR.
Request the container shutdown by sending it SIGPWR.
Seconds to wait before returning false. (-1 to wait forever, 0 to avoid waiting).
true if the container was shutdown successfully, else false.
Create a container snapshot.
Create a container snapshot.
Assuming default paths, snapshots will be created as /var/lib/lxc/\<c\>/snaps/snap\ where \<c\> represents the container name and represents the zero-based snapshot number.
Full path to file containing a description of the snapshot.
-1 on error, or zero-based snapshot number.
commentfile may be NULL but this is discouraged.
Destroy the specified snapshot.
Destroy the specified snapshot.
Name of snapshot.
true on success, else false.
Destroy all the container's snapshot.
Destroy all the container's snapshot.
true on success, else false.
Obtain a list of container snapshots.
Obtain a list of container snapshots.
List of snapshots.
Create a new container based on a snapshot.
Create a new container based on a snapshot.
The restored container will be a copy (not snapshot) of the snapshot, and restored in the lxcpath of the original container.
Name of snapshot.
Name to be used for the restored snapshot.
true on success, else false.
As an example, if the container exists as /var/lib/lxc/c1, snapname might be 'snap0' (representing /var/lib/lxc/c1/snaps/snap0). If newname is c2, then snap0 will be copied to /var/lib/lxc/c2.
,If newname is the same as the current container name, the container will be destroyed. However, this will fail if the snapshot is overlay-based, since the snapshots will pin the original container.
Start the container.
Start the container.
Optional arguments to be passed to init.
true on success, else false.
Determine state of container.
Determine state of container.
Static upper-case string representing state of container.
Stop the container.
Stop the container.
true on success, else false.
Thaw a frozen container.
Thaw a frozen container.
true on success, else false.
Wait for container to reach a particular state.
Wait for container to reach a particular state.
State to wait for.
Timeout in seconds.
true if state reached within timeout, else false.
A timeout of -1 means wait forever. A timeout of 0 means do not wait.
Determine whether container wishes all file descriptors to be closed on startup.
Determine whether container wishes all file descriptors to be closed on startup.
Value for the close_all_fds bit (0 or 1).
true if container wants all file descriptors closed, else \c false.
Determine if the container wants to run disconnected from the terminal.
Determine if the container wants to run disconnected from the terminal.
Value for the daemonize bit (0 or 1).
true if container wants to be daemonised, else false.
LXC Container instance