Executing a command inside a QNX Container

In this section, you can execute a command inside the container.

Using the same configuration that you used for the creation of the container, you can execute a command inside the container environment with the qcmctl container exec command to view the contents of the container or run a process with either the container’s UID or an optional UID.
Note:
The executable command must already be part of the container's image and exist on its root filesystem.
For example, to list the files at the root path of the container, run:
# qcmctl container exec container1 -U 1000 -- ls /
The previous command should have the following, or similar, output:
$ls
etc
proc
system
usr
Note:
The container must be running in order to execute any command inside it.
Page updated: