Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Ubuntu 20.04 - Issues installing nvidia-docker2 #1594

Closed
witty-one opened this issue Jan 24, 2022 · 5 comments
Closed

Ubuntu 20.04 - Issues installing nvidia-docker2 #1594

witty-one opened this issue Jan 24, 2022 · 5 comments

Comments

@witty-one
Copy link

Hello everyone,

I'm a bit new to nvidia-docker. My apologies if this is an easy issue to resolve. I've followed the documentation regarding installation with docker, and now am trying to install nvidia-docker2 when I get the following error:

requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nvidia-docker2 : Depends: nvidia-container-toolkit (>= 1.7.0-1) but 1.5.1+dfsg-0xxxxx0.20.04.1 is to be installed

Information of my system:

  • kernel version: 5.13.0-27-generic

  • 'nvidia-smi'
    smi

  • docker version:
    'Docker version 20.10.12, build e91ed57'

Thank you in advance!

@klueska
Copy link
Contributor

klueska commented Jan 26, 2022

Your package manager seems to want to be installing some custom version of nvidia-container-toolkit (i.e. one not maintained by us at NVIDIA). This version is 1.5.1+dfsg-0xxxxx0.20.04.1.

The discussion here my help:
#1388 (comment)

@witty-one
Copy link
Author

@klueska, thank you so much! It seems as though if you have a newer version of docker installed, it isn't a necessity to install nvidia-docker2, is this correct? As long as I have nvidia container toolkit? I'm using an older version of tensorflow (project constraint), and am utilizing docker so that I can have backwards compatibility with CUDA and train with host's GPU.

@klueska
Copy link
Contributor

klueska commented Jan 28, 2022

It depends....

Please see my comments here:
#1268 (comment)

@elezar
Copy link
Member

elezar commented Jan 28, 2022

@witty-one you should also be able to get by the error shown by explicitly specifying the nvidia-container-toolkit package version that is to be installed.

sudo apt-get install -y nvidia-docker=2.8.0-1 nvidia-container-toolkit=1.7.0-1 libnvidia-container-tools=1.7.0-1 libnvidia-container1=1.7.0-1

But yes, nvidia-docker2 is not strictly necessary assuming you do one of:

  • Use the docker --gpus flag directly
  • Manually update the /etc/docker/daemon.json file to reference the nvidia-container-runtime if you're using the --runtime=nvidia argument.

@witty-one
Copy link
Author

@klueska Thank you for all the references! It definitely helps navigate some of this! @elezar this was what I needed! Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants