Stopping and removing a QNX Container

In this section, you stop and/or remove the container.

Depending on the type of container application, the container may exit on its own after completing some tasks. However, you may want to stop the container manually before it completes its task, or if it's a long-running application.
Attention:
Always use the mechanisms below to shutdown and remove containers. Do not try to remove filesystem components from command line. Always use qcmctl <item> remove <item>.

Stopping a container

You can stop a container with the qcmctl container stop command; for example:
# qcmctl container stop container1
Note:
An optional timeout value may be passed to the stop command to control the amount of time allowed for the container shutdown. To immediately force stop a container, a timeout value of 0 may be specified.
The status command can provide useful information on the state and exit code that resulted in the termination of the container:
# qcmctl container status container1 
FIELD       VALUE       
Name        container1
Id          95c4d59554183251af5eb21242c5e38c6493fff3013387a9f4e5f4c6fe9fd8f1
State       Exited
Created     2025-06-05 18:00:08
Started     2025-06-05 19:24:29
Finished    2025-06-05 19:24:33
Exit Code   15
Signaled    1
Note:
A container may be stopped and restarted multiple times.

Removing a container

=
To cleanup the container, the qcmctl container remove to delete it:
# qcmctl container remove container1
Note:
A running container must be stopped first before it can be removed.
Page updated: