Last active
November 10, 2016 02:08
-
-
Save linuxluser/b6e75cc921ce6c1f95d8abccdd2928c6 to your computer and use it in GitHub Desktop.
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
# To build and run: | |
# $ docker build -t nvidia-docker-bug . | |
# $ docker run -ti --rm nvidia-docker-bug /bin/bash | |
# To reproduce, run container and try and install the package. | |
# | |
# Sample session: | |
# | |
# root@224ae124ddcd:/# dpkg -i nvidia-docker_1.0.0.rc.3-1_amd64.deb | |
# Selecting previously unselected package nvidia-docker. | |
# (Reading database ... 11936 files and directories currently installed.) | |
# Preparing to unpack nvidia-docker_1.0.0.rc.3-1_amd64.deb ... | |
# Unpacking nvidia-docker (1.0.0~rc.3-1) ... | |
# Setting up nvidia-docker (1.0.0~rc.3-1) ... | |
# Configuring user | |
# Setting up permissions | |
# invoke-rc.d: unknown initscript, /etc/init.d/nvidia-docker not found. | |
# dpkg: error processing package nvidia-docker (--install): | |
# subprocess installed post-installation script returned error exit status 100 | |
# Errors were encountered while processing: | |
# nvidia-docker | |
# | |
# Now create the missing file and try again ... | |
# | |
# root@224ae124ddcd:/# touch /etc/init.d/nvidia-docker && chmod 0755 /etc/init.d/nvidia-docker | |
# root@224ae124ddcd:/# dpkg -i nvidia-docker_1.0.0.rc.3-1_amd64.deb | |
# (Reading database ... 11946 files and directories currently installed.) | |
# Preparing to unpack nvidia-docker_1.0.0.rc.3-1_amd64.deb ... | |
# invoke-rc.d: policy-rc.d denied execution of stop. | |
# Unpacking nvidia-docker (1.0.0~rc.3-1) over (1.0.0~rc.3-1) ... | |
# Setting up nvidia-docker (1.0.0~rc.3-1) ... | |
# Configuring user | |
# Setting up permissions | |
# invoke-rc.d: policy-rc.d denied execution of start. | |
# insserv: warning: script 'nvidia-docker' missing LSB tags and overrides | |
# root@224ae124ddcd:/# | |
FROM debian:jessie | |
# Add Docker repository to pick up docker-engine package | |
RUN apt-get update && \ | |
apt-get install -y apt-transport-https ca-certificates && \ | |
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D && \ | |
echo "deb https://apt.dockerproject.org/repo debian-jessie main" > /etc/apt/sources.list.d/upstream-docker.list | |
# Add nvidia-docker dependencies | |
RUN apt-get update && apt-get install -y init-system-helpers docker-engine wget | |
# Download nvidia-docker package | |
RUN wget -P / https://github.com/NVIDIA/nvidia-docker/releases/download/v1.0.0-rc.3/nvidia-docker_1.0.0.rc.3-1_amd64.deb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment