Hi,
I'm on Ubuntu 20.10 and it seems there is no appropriate nvidia-docker version released for it. Any hints for the installation of nvidia-docker on Ubuntu 20.10?
The OS info is shown below:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.10
Release: 20.10
Codename: groovy
Regards,
HY
While not officially supported, you should be able to just install the version meant for 18.04 or 20.04 without problem. i.e.:
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | \
sudo apt-key add -
distribution=$(. /etc/os-release;echo ${ID}20.10)
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
The problem is the nvidia-docker.list file mentioned above has all lines commented out. See following for more info:
$ curl -sx socks5://127.0.0.1:18888 -L https://nvidia.github.io/nvidia-docker/$(. /etc/os-release;echo ${ID}20.10)/nvidia-docker.list
# Unsupported distribution!
# Check https://nvidia.github.io/nvidia-docker
As a result, nothing can be installed with the generated nvidia-docker.list as the apt sources file.
Sorry, i meant to write 20.04 in there, not 20.10. so you just install the
20.04 stack and it should work.
hongyi-zhao notifications@github.com schrieb am Mo. 9. Nov. 2020 um 13:54:
The problem is the nvidia-docker.list file mentioned above has all lines
commented out. See following for more info:$ curl -sx socks5://127.0.0.1:18888 -L https://nvidia.github.io/nvidia-docker/$(. /etc/os-release;echo ${ID}20.10)/nvidia-docker.list
Unsupported distribution!
Check https://nvidia.github.io/nvidia-docker
As a result, nothing can be installed based on the generated
nvidia-docker.list file.—
You are receiving this because you commented.Reply to this email directly, view it on GitHub
https://github.com/NVIDIA/nvidia-docker/issues/1407#issuecomment-723994449,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAXRI3XLVT73LTOBZYFGJLSO7Q7RANCNFSM4TNW7AZQ
.>
~Kevin
Sorry, i meant to write 20.04 in there, not 20.10. so you just install the
20.04 stack and it should work.
You're absolutely right. Even with the 20.04, I obtained the following nvidia-docker.list file:
$ cat /etc/apt/sources.list.d/nvidia-docker.list
deb https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/$(ARCH) /
#deb https://nvidia.github.io/libnvidia-container/experimental/ubuntu18.04/$(ARCH) /
deb https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/$(ARCH) /
#deb https://nvidia.github.io/nvidia-container-runtime/experimental/ubuntu18.04/$(ARCH) /
deb https://nvidia.github.io/nvidia-docker/ubuntu18.04/$(ARCH) /
As you can see, the highest version for these tools is for ubuntu18.04.
The another problem is that the installation guide doesn't include the apt-get install command.
That nvidia-docker.list file is expected; 20.04 is just a symlink to 18.04 as seen here (this is the source for the webserver hosting the apt repo):
https://github.com/NVIDIA/nvidia-docker/tree/gh-pages
The another problem is that the installation guide doesn't include the apt-get install command.
It does though...
It's the third command from the link you sent.
It does though...
It's the third command from the link you sent.
I really don't understand what is your meaning. Could you please give me some more hints/explanations?
The installation guide has the apt-get install command as the third command in it.
The installation guide has the
apt-get installcommand as the third command in it.
It only includes the following code snippets and I still can't find the apt-get install in them.
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
Bottom command in:

Thanks for pointing this out. To be frank, I previously use the following command for this purpose:
$ apt-get install -y nvidia-container-toolkit
BTW, I find another strange thing as shown below:
$ sudo apt-get install nvidia-container-runtime-hook
[...]
The following packages will be REMOVED:
nvidia-container-runtime nvidia-container-toolkit nvidia-docker2
The following NEW packages will be installed:
nvidia-container-runtime-hook
So, nvidia-container-runtime-hook is conflicted with nvidia-container-runtime nvidia-container-toolkit nvidia-docker2. Any hints for this problem?
Why are you doing:
sudo apt-get install nvidia-container-runtime-hook
That package has been deprecated (i.e. replaced by) nvidia-container-toolkit for quite some time now.
I really don't know that. Where is the document explaining the matter?
There is no "official" documentation on it as far as I know (because this was a dependent package that was never intended to be installed on its own and was just swapped out for the newly named nvidia-container-toolkit package).
Here is the release notes on it:
https://github.com/NVIDIA/nvidia-container-toolkit/releases/tag/v1.0.5
Here is the release notes on it:
https://github.com/NVIDIA/nvidia-container-toolkit/releases/tag/v1.0.5
Thank you for telling me this information which is not so easy to find out.
Most helpful comment
Sorry, i meant to write 20.04 in there, not 20.10. so you just install the
20.04 stack and it should work.
hongyi-zhao notifications@github.com schrieb am Mo. 9. Nov. 2020 um 13:54:
~Kevin