-
Notifications
You must be signed in to change notification settings - Fork 2k
Can not install nvidia-docker2 with docker 17.12.0-ce installed #607
Comments
What's |
I have upgrade the docker with following commands, and it worked for me.
|
@lsy643 |
@flx42 Make sure you have installed the NVIDIA driver and a supported version of Docker for your distribution (see prerequisites). If you have a custom /etc/docker/daemon.json, the nvidia-docker2 package might override it. Xenial x86_64 If you have nvidia-docker 1.0 installed: we need to remove it and all existing GPU containersdocker volume ls -q -f driver=nvidia-docker | xargs -r -I{} -n1 docker ps -q -a -f volume={} | xargs -r docker rm -f Add the package repositoriescurl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | Install nvidia-docker2 and reload the Docker daemon configurationsudo apt-get install -y nvidia-docker2 Test nvidia-smi with the latest official CUDA imageI'm trying to test nvidia-docker 2.0 (we start containers via the Docker API and we cannot use 1.0), but I am getting this error: dpkg -l | grep dockerii docker-ce 17.12.0 The content of my /etc/docker/daemon.json { How to solve the issue? |
@boriskovalev , this working for me: Thanks. |
sudo apt-get install docker-ce=18.03.1 |
sudo apt-get install |
1. Issue or feature description
When I install the nvidia-docker2 in my Ubuntu 16.04 server, the os reports:
The following packages have unmet dependencies: nvidia-docker2 : Depends: docker-ce (= 17.12.0~ce-0~ubuntu) but it is not installable or docker-ee (= 17.12.0~ee-0~ubuntu) but it is not installable E: Unable to correct problems, you have held broken packages.
I have searched related issues, and I think I have not installed the correct docker version. The nvidia-docker2 requires 17.12.0-1, but I can not find it. The most related version I can find is 17.12.0-ce.
2. Information to attach (optional if deemed irrelevant)
uname -a
Linux nuc-116-9 4.4.0-104-generic systemd is needed by nvidia-docker on RHEL 6 #127-Ubuntu SMP Mon Dec 11 12:16:42 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
docker version
17.12.0-ce
The text was updated successfully, but these errors were encountered: