NVIDIA-ISAAC-ROS / NVIDIA-ISAAC-ROS/isaac_ros_visual_slam

Docker Error - Unknown or Invalid Runtime Name: Nvidia

Open
#132 18 comments 1 reaction 1 assignee View on GitHub

@hemalshahNV is already working on this.

Since Nov 17, 2023.

documentation good first issue verify to close
Dominant language
C++
Stars
1.5k
Forks
206
PR merge metrics
No merged PRs in 30d

Description

I am encountering a runtime error with Docker when trying to use the Nvidia runtime. This issue arises despite having a successful output with an initial Docker command and making subsequent edits to the Docker configuration.

Steps to Reproduce
  1. Run the following Docker command which executes successfully:

    sudo docker run --rm --runtime=nvidia --gpus all ubuntu nvidia-smi
    
  2. Edit /etc/docker/daemon.json as follows:

    {
        "runtimes": {
            "nvidia": {
                "path": "nvidia-container-runtime",
                "runtimeArgs": []
            }
        },
        "default-runtime": "nvidia"
    }
    
  3. After making these changes, attempt to execute a script with the command:

    scripts/run_dev.sh ~/workspaces/isaac_ros-dev/
    

    This results in the following error:

    docker: Error response from daemon: unknown or invalid runtime name: nvidia.
    
Expected Behavior

The Docker container should recognize the Nvidia runtime without errors, especially since the initial command runs without issues.

Actual Behavior

The system throws an error stating "unknown or invalid runtime name: nvidia" when trying to run a script that utilizes Docker with the Nvidia runtime.

Environment
  • Docker version: Docker version 24.0.7, build afdd53b
  • Operating System:ubuntu22.04
  • Any other relevant environmental details
Attempts to Resolve
  • Verified that the initial Docker command runs successfully.
  • Checked the syntax and paths in the daemon.json file.
  • Searched for similar issues in forums and GitHub Issues.
Request for Help

Could anyone provide insights or suggest potential solutions to resolve this runtime error? Any advice or guidance would be greatly appreciated.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.