I noticed that when I use isaac-ros activate to start a container, if I close the terminal and then open a new terminal to start the container again with isaac-ros activate, it seems to create a brand-new container. All the packages I previously installed are gone. I would like to know if there is a way to preserve the container after closing the terminal so that I can continue using it next time.
Currently, it seems that isaac-ros activate is not supported. You should use docker commit to save your changes, and then use the docker run command to start it. The specific startup command is /usr/lib/isaac-ros-cli/run_dev.py, which executes this file. You can refer to it for modification.
nmw@localhost:~$ apt-cache policy isaac-ros-cli | grep Installed
Installed: 1.0.1-1
nmw@localhost:~$ isaac-ros activate
/mnt/nova_ssd/workspaces/isaac_ros-dev
Logged in to nvcr.io/nvidia/isaac/ros. Using this for cache.
[‘noble’, ‘ros2_jazzy’, ‘realsense’]
Dockerfile created: image_key = noble
Dockerfile created: image_key = realsense
Dockerfile created: image_key = ros2_jazzy
Error response from daemon: manifest for nvcr.io/nvidia/isaac/ros:noble-ros2_jazzy-realsense_b5ce21cdf1e5dd717f8158fd39553373-arm64 not found: manifest unknown: manifest unknown
Error: Docker image nvcr.io/nvidia/isaac/ros:noble-ros2_jazzy-realsense_b5ce21cdf1e5dd717f8158fd39553373-arm64 not found.
Use --build to build remotely or --build-local to build locally.
nmw@localhost:~$ Hello, my version is correct, but I’m still getting the message that I can’t obtain the image.
Hello @1090952203,
Please follow the steps here to reinstall the Isaac ROS CLI and make sure the Dockerfile hash matches what we’ve listed.
nmw@localhost:~$ md5sum /etc/isaac-ros-cli/docker/Dockerfile.*
a861cae9015ab15c1fe4581bd3eb65b4 /etc/isaac-ros-cli/docker/Dockerfile.noble
362eb42baa8dc5af4a7a6408fbce8180 /etc/isaac-ros-cli/docker/Dockerfile.realsense
3a53634c32758f2007b7a9cbe300d106 /etc/isaac-ros-cli/docker/Dockerfile.ros2_jazzy
nmw@localhost:~$ The hash values match.
We have released Isaac ROS CLI version 1.0.2 which contains fixes to address issues with the --build-local flag and the RealSense image key.
Please update the CLI package on your host machine and try the activatecommand again.
Thanks for your patience!