Starting a QNX Container and checking its logs
In this section, you start the container process.
Starting the container can be done via the
qcmctl container start command:
qcmctl container start container1
And the state of the container can be confirmed with qcmctl container list as follows:
# qcmctl container list
NAME CONTAINER ID STATE CREATED
container1 95c4d5955418 Running 2025-06-05 18:00:08
More details of the container (e.g., PID of the container process)
can be found via the status command:
# qcmctl container status container1
FIELD VALUE
Name container1
Id 95c4d59554183251af5eb21242c5e38c6493fff3013387a9f4e5f4c6fe9fd8f1
State Running
Created 2025-06-05 18:00:08
Started 2025-06-05 19:01:47
PID 10911765
By default, if neither the log_directory on the Pod
nor the log_path on the container is configured,
then the STDOUT or STDERR logs may be under
root_directory/containers/logs/<container-id>.
In your container example, to view the output of your container
application which prints a periodic message to STDOUT, run:
# tail -f /var/lib/containers/logs/95c4d59554183251af5eb21242c5e38c6493fff3013387a9f4e5f4c6fe9fd8f1
Hello from a QNX container!
Hello from a QNX container!
Hello from a QNX container!
Alternatively, you can use qcmctl to view the messages:
# qcmctl container logs 95c4d59554183251af5eb21242c5e38c6493fff3013387a9f4e5f4c6fe9fd8f1
Page updated:
