Hailo Suite Docker image on Ubuntu 24.04

I am following the steps in this guide 2025-01 | Hailo to install Hailo Suite using Docker. However, I have encountered some issues:

In step 3, the guide instructs installing nvidia-docker2 using the following commands:

distribution=$(. /etc/os-release;echo $ID$VERSION_ID) \
&& curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add - \
&& curl -s -L \
https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list \
| sudo tee /etc/apt/sources.list.d/nvidia-docker.list

sudo apt-get update
sudo apt-get install -y nvidia-docker2
sudo systemctl restart docker

However, I am receiving an error stating that this obsolete. According to Nvidia’s website, the recommended installation method is now:

sudo apt-get install -y nvidia-container-toolkit

I have the latest version of the Docker packages installed.

Could you please confirm if the Hailo Suite Docker container is compatible with the latest Docker version? Additionally, could you provide the correct installation steps?
Thanks!

Hey @dgarrido ,

Two questions for you:

  1. What Docker version are you currently using?
  2. Did you run the recommended command and it’s still failing?

Could you also try these installation steps for the NVIDIA Container Toolkit:

Installation Steps for NVIDIA Container Toolkit:

  1. Set Up the Package Repository and GPG Key:

    distribution=$(. /etc/os-release; echo $ID$VERSION_ID)
    curl -s -L https://nvidia.github.io/libnvidia-container/gpgkey | sudo apt-key add -
    curl -s -L https://nvidia.github.io/libnvidia-container/$distribution/libnvidia-container.list | sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list
    
  2. Install the NVIDIA Container Toolkit:

    sudo apt-get update
    sudo apt-get install -y nvidia-container-toolkit
    
  3. Restart the Docker Daemon:

    sudo systemctl restart docker
    

Hi

I had exactly this issue and I solved it by reinstalling Ubuntu 22.04 and running the nvidia-docker2 script in their. Please see this post: GPU not detected in Hailo Suite - #18 by bower

Best Regards

1 Like