Installing nvidia-docker on linux mint

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
davidparks21
Level 1
Level 1
Posts: 38
Joined: Wed Dec 21, 2016 6:07 pm

Installing nvidia-docker on linux mint

Post by davidparks21 » Thu Feb 07, 2019 8:35 pm

I'm trying to install nvidia-docker

https://github.com/NVIDIA/nvidia-docker

Linux mint is an unsupported distribution, so it encounters the error:

Code: Select all

$ sudo apt-get install -y nvidia-docker2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
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-runtime (= 2.0.0+docker18.09.1-1) but it is not going to be installed
                  Depends: docker-ce (= 5:18.09.1~3-0~ubuntu-bionic) but it is not installable or
                           docker-ee (= 5:18.09.1~3-0~ubuntu-bionic) but it is not installable
E: Unable to correct problems, you have held broken packages.

The best I can find from a google seearch is this half-complete github forum post:

https://github.com/NVIDIA/nvidia-docker/issues/848

Does anyone know what is necessary to get this to work? I'm starting to go in circles on this problem.

I have docker installed:

Code: Select all

$ docker --version
Docker version 18.06.1-ce, build e68fc7a

deepakdeshp
Level 13
Level 13
Posts: 4944
Joined: Sun Aug 09, 2015 10:00 am

Re: Installing nvidia-docker on linux mint

Post by deepakdeshp » Fri Feb 08, 2019 4:40 am

Please look for Ubuntu docker install. Most provably it will work.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
I am using Mint 19.1 Cinnamon 64 bit with AMD A8/7410 processor . Memory 8GB

davidparks21
Level 1
Level 1
Posts: 38
Joined: Wed Dec 21, 2016 6:07 pm

Re: Installing nvidia-docker on linux mint

Post by davidparks21 » Fri Feb 08, 2019 4:11 pm

Unfortunately the instructions for ubuntu installs don't typically work with linux mint. Yes, the ubuntu configuration should work, but the installation process is not typically configured for mint (it's explicitly unsupported by nvidia), and thus you have to scrap the installation scripts and documentation and work out each step manually. There are unfortunately a lot of different discussions going in all different directions when it comes to issues installing with linux mint. We really need a guide for getting it to work with mint. I've burnt half a day with little to no success so far. There are a lot of intricacies you need to learn to manage the process manually for mint.

davidparks21
Level 1
Level 1
Posts: 38
Joined: Wed Dec 21, 2016 6:07 pm

Re: Installing nvidia-docker on linux mint

Post by davidparks21 » Tue Feb 12, 2019 3:07 pm

I've gotten this working, the most obvious issue was that `distribution` in the documentation (https://github.com/NVIDIA/nvidia-docker) needs to be set as:

Code: Select all

distribution=ubuntu18.04
That is assuming you're using 19.3, adjust the ubuntu version for the appropriate ubuntu version which you can find here: https://en.wikipedia.org/wiki/Linux_Min ... on_history

On top of that I did the following, not all of these steps are necessarily critical path, but I'll list them anyway:
- Upgrade to 19.3 linux mint so I'm on ubuntu 18.04
- Uninstall docker-ce and re-install it after adding the repo's shown in nvidia-docker
- Remove all references to nvidia or docker in any file in `/etc/apt/sources.list.d`

Post Reply

Return to “Software & Applications”