Starting the QNX Container Runtime

In this section, you start the QNX Container Runtime.

Prerequisites

Before launching the QNX Container Runtime process (qrunc), you must create the root directory to use with qrunc. If you use the default root directory option, then the following directory must exist:
mkdir /var/run

Command

qrunc [options]
Note:
Starting the QNX Container Runtime must be done as the root user.

Options

You can customize the functionality of qrunc with the following arguments:

Resource manager Options

-m mount path
Resource manager mount path (Default: /dev/containers/qrunc).
-t resource manager threads
Number of resource manager threads (Default: 4).
-b max subscribers
Maximum number of subscribers (Default: 8).
-l libqclog string
Logging options string (Default: "locations=stdout, prefix=qrunc: , verbosity=info"). For details on qrunc logging options, refer to Logging Options.

Container Options

-r runtime path
Root directory for storing all container runtime data (Default: /var/run). The qrunc process creates the containers/runtime directory under the root directory for storing all container runtime data.
-s exec-sync buffer size (in bytes)
Maximum byte size of the combined stdout and stderr buffer for exec-sync session (Default: 8192).
-z container log file size (in bytes)
Maximum size of the container log file. If the log file is full, the older entries get overwritten (Default: 1Mb).
-U User ID ranges
Allowable UID ranges (comma separated list of ID or colon separated ID range) Only start a container process if the user ID falls within this provided range (e.g., '4,8:10,100').
-G Group ID ranges
Allowable GID ranges (comma separated list of ID or colon separated ID range) Only start a container process if the group ID falls within this provided range (e.g., '4,8:10,100').

Example invocation

The following command launches the qrunc process with default options and logs the output to the system logger:
qrunc -l "locations=slog2,slogpages=8,verbosity=info" &
Page updated: