Unfortunately, the docker version available with the usual package manager is incompatible with the nVidia docker tools. Thus, we have to install a version directly from the repositories. The following script (which needs sudo privileges to run) shows you how.
NOTE: The following scripts require <code>curl</code>, which may be not yet installed on your system (especially on a fresh Ubuntu). If so, install with <code>sudo apt-get install curl</code>.
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
sudo curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
</syntaxhighlight>