0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

docker runのときにError response from daemon: unknown or invalid runtime name: nvidia.

Posted at

状況

  • DockerでGPUを用いた処理のための仮想環境をしようとしていた
  • run.shというbashファイルを作成し,runさせようとしていた

当該コード

    docker run -it \
    --privileged \
    --runtime=nvidia \
    -e NVIDIA_VISIBLE_DEVICES=all \
    -e NVIDIA_DRIVER_CAPABILITIES=all \
    --env=DISPLAY=$DISPLAY \
    ...

エラー

docker: Error response from daemon: unknown or invalid runtime name: nvidia.
See 'docker run --help'.

改善方法

以下の通り修正

# 修正前
    --runtime=nvidia \
# 修正後
    --gpus all \

参考文献

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?