How to install nvidia-docker2 on an already configured jetson xavier

Setup Info:
Platform: Jetson Xavier
Deepstream Version: 6.1
Jetpack Version: 5.0.1
TensorRT Version: 8.4.0
Issue Type: question

Hello everyone,
I am currently working with a Jetson Xavier that is already setup and I want to use the NVIDIA Container Runtime. The tutorials state that the runtime will come preinstalled with jetpack. However when running

sudo dpkg --get-selections | grep nvidia

I get the following output:

libnvidia-container-tools                       install
libnvidia-container0:arm64                      install
libnvidia-container1:arm64                      install
nvidia-container-runtime                        install
nvidia-container-toolkit                        install
nvidia-docker2                                  deinstall
nvidia-l4t-3d-core                              install
nvidia-l4t-apt-source                           install
nvidia-l4t-bootloader                           install
nvidia-l4t-camera                               install
nvidia-l4t-configs                              install
nvidia-l4t-core                                 install
nvidia-l4t-cuda                                 install
nvidia-l4t-display-kernel                       install
nvidia-l4t-firmware                             install
nvidia-l4t-gputools                             install
nvidia-l4t-graphics-demos                       install
nvidia-l4t-gstreamer                            install
nvidia-l4t-init                                 install
nvidia-l4t-initrd                               install
nvidia-l4t-jetson-io                            install
nvidia-l4t-jetson-multimedia-api                install
nvidia-l4t-jetsonpower-gui-tools                install
nvidia-l4t-kernel                               install
nvidia-l4t-kernel-dtbs                          install
nvidia-l4t-kernel-headers                       install
nvidia-l4t-libvulkan                            install
nvidia-l4t-multimedia                           install
nvidia-l4t-multimedia-utils                     install
nvidia-l4t-nvfancontrol                         install
nvidia-l4t-nvpmodel                             install
nvidia-l4t-nvpmodel-gui-tools                   install
nvidia-l4t-nvsci                                install
nvidia-l4t-oem-config                           install
nvidia-l4t-optee                                install
nvidia-l4t-pva                                  install
nvidia-l4t-tools                                install
nvidia-l4t-wayland                              install
nvidia-l4t-weston                               install
nvidia-l4t-x11                                  install
nvidia-l4t-xusb-firmware                        install

where nvidia-docker2 is marked as “deinstall”. Is there a way to fix this without flashing the entire device?


sudo docker info | grep nvidia


Runtimes: runc io.containerd.runc.v2 io.containerd.runtime.v1.linux nvidia

Thanks in advance for your help.