From ae7100b6c0db5faa0de42dd4ca218d51d14fc459 Mon Sep 17 00:00:00 2001 From: Andrey Arapov Date: Wed, 27 Apr 2016 17:54:17 +0200 Subject: [PATCH] lock to nvidia-340 only currently --- Dockerfile | 2 +- README.md | 7 +++++++ docker-compose.yml | 6 +++--- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index ce6854a..453d9c3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,7 +36,7 @@ RUN echo "deb [arch=amd64,i386] http://repo.steampowered.com/steam/ precise stea apt-get -y upgrade && \ apt-get -y dist-upgrade && \ apt-get -fy install && \ - apt-get -y install pciutils pulseaudio nvidia-current mesa-utils steam && \ + apt-get -y install pciutils pulseaudio nvidia-340 mesa-utils steam && \ rm -f /etc/apt/sources.list.d/tmp-steam.list && \ rm -rf /var/lib/apt/lists diff --git a/README.md b/README.md index f1854c5..8d0779f 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,13 @@ Tested in Ubuntu 16.04 LTS (64bit) with the following GPU's: - [Docker](https://www.docker.com/) - (Optional) [Docker Compose](https://docs.docker.com/compose/) +## Limitations + +- Currently, the version of the Nvidia's driver in this container must match the version installed on your host. + + I am going to improve the `/launch` script so that it will be able to automatically detect the working version of your Nvidia driver and use it. + Currently the script detects only the nvidia-340 vs no-proprietary-nvidia-drivers at all. + # Building and launching Steam diff --git a/docker-compose.yml b/docker-compose.yml index 6b138fc..d5fde40 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,9 +16,9 @@ services: - data:/home # - /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket:ro devices: - # - /dev/nvidia0 - # - /dev/nvidiactl - # - /dev/nvidia-uvm + - /dev/nvidia0 + - /dev/nvidiactl + - /dev/nvidia-uvm # - /dev/nvidia-modeset - /dev/dri # - /dev/snd