isaac-ros activate creates a disposable container using Docker’s --rm option.
Therefore, packages installed interactively with apt are lost when you exit with Ctrl+D.
For dependencies you want to keep, the recommended approach is to install them
in a custom Docker image layer, register that layer using additional_image_keys, and build it with: isaac-ros activate --build-local
Subsequent isaac-ros activate commands will reuse the built image, so those packages remain available even when the runtime container is recreated. Please refer to the official documentation for the complete configuration and Dockerfile example: Custom Docker Image Layers — Isaac ROS 4.6