我们可以在Docker容器中更新CUDA版本9.0至10.0吗?

发布于 2025-02-06 02:21:46 字数 940 浏览 0 评论 0原文

我是Docker的新手。我正在尝试在Docker容器中运行一个GitHub存储库。我有几个问题。

  1. 使用CUDA版本9.0创建了Docker映像。我在我的Amazon EC2实例中有Tesla T4 GPU和驱动程序版本470.129.06。我想将CUDA版本从9更新为10.0。是否可以在Docker容器内更新CUDA版本?如果是,那么我们如何更新它?您可以共享一些有用的链接吗?

  2. 每当我运行nvidia-docker run命令时,它都会进入鱼类互动壳。我希望它可以启动bash互动外壳。我不知道如何在运行docker

    后进入bash shell

命令是:

nvidia-docker run -it --rm -v /Path_to_dataset:/root/data -v $Path_to_model:/root/model --ipc=host scrin/second-pytorch

我尝试添加命令中的bash但不起作用(我会遇到错误:open:no这样的文件或目录> )。

nvidia-docker run -it --rm -v /Path_to_dataset:/root/data -v $Path_to_model:/root/model --ipc=host scrin/second-pytorch bash

我正在使用的git存储库是: https://github.com/github.com/traveller59/traveller59/second.pytorch.py​​torch

如果有人可以帮助我。 先感谢您。

I am new to docker. I am trying to run one github repository in docker container. I have few questions regarding the same.

  1. The docker image was created using CUDA version 9.0. I have Tesla T4 GPU and Driver version 470.129.06 in my amazon EC2 instance. I want to update CUDA version from 9 to 10.0. Is is possible to update cuda version inside the docker container? If yes, then How do we update it? Can you share some useful links?

  2. Whenever I run nvidia-docker run command it enters into fish interactive shell. I want it to start bash interactive shell. I don’t know how to enter in bash shell after running docker

The command I am running is:

nvidia-docker run -it --rm -v /Path_to_dataset:/root/data -v $Path_to_model:/root/model --ipc=host scrin/second-pytorch

I tried adding bash in command but does not work (I get error: open: No such file or directory).

nvidia-docker run -it --rm -v /Path_to_dataset:/root/data -v $Path_to_model:/root/model --ipc=host scrin/second-pytorch bash

The git repository I am using is: https://github.com/traveller59/second.pytorch

If anyone can help me.
Thank you in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

靑春怀旧 2025-02-13 02:21:47

我找到了解决方案。

1。

wget https://developer.download.nvidia.com/compute/cuda/10.2/Prod/local_installers/cuda_10.2.89_440.33.01_linux.run
sh cuda_10.2.89_440.33.01_linux.run
  1. 如果您输入鱼壳运行命令bash,则将输入bash Interactive shell。

I found the solution.

1.

wget https://developer.download.nvidia.com/compute/cuda/10.2/Prod/local_installers/cuda_10.2.89_440.33.01_linux.run
sh cuda_10.2.89_440.33.01_linux.run
  1. If you enter in fish shell run command bash then it will enter in bash interactive shell.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文