How can I keep a Docker container alive after I exit from it?

I would like to keep apt packages in develop environment after I deactivate the environment.

While I enter into the environment with

isaac-ros activate

, I can watch an active container with `docker ps`.

However, after I exit from the environment with `Ctrl+D`, the container is removed.

I would like to simply stop the container, not to down it.

Hello @botamochi6277_nvidia,

Thanks for posting in the Isaac ROS forum!

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