Created
July 18, 2019 03:36
-
-
Save moeiscool/913d74c4c45d14dd4d9dc125f5470c65 to your computer and use it in GitHub Desktop.
Fix Docker version on Ubuntu so you can install nvidia-docker2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Solution found here https://github.com/NVIDIA/nvidia-docker/issues/857#issuecomment-482379024 | |
DOCKER_CE_VERSION=`apt-cache show nvidia-docker2 | grep -Po "(?<=docker-ce \(= )([^)]*)" | head -n 1` | |
apt-get -yq install nvidia-docker2 docker-ce=${DOCKER_CE_VERSION} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment