Public Repository

Last pushed: 8 months ago
Short Description
NVIDIA CUDA 8 image based on Ubuntu 14.04 with the cuda Samples and freeglut3-dev
Full Description

This is the NVIDIA CUDA 8 image based on Ubuntu 14.04 with the cuda Samples and freeglut3-dev installed along with its deps to provide OpenGL dev support.


DOCKERFILE:

FROM nvidia/cuda:8.0-runtime-ubuntu14.04
#
# This is a modification of the NVIDIA CUDA Dockerfile
# for cuda 8 devel on Ubuntu 14.04
#
LABEL maintainer "dbk for personal use"
#
#ATTRIBUTION:
#LABEL maintainer "NVIDIA CORPORATION <cudatools@nvidia.com>"
#
RUN apt-get update && apt-get install -y --no-install-recommends \
         cuda-core-$CUDA_PKG_VERSION \
         cuda-misc-headers-$CUDA_PKG_VERSION \
         cuda-command-line-tools-$CUDA_PKG_VERSION \
         cuda-nvrtc-dev-$CUDA_PKG_VERSION \         
         cuda-nvml-dev-$CUDA_PKG_VERSION \         
         cuda-nvgraph-dev-$CUDA_PKG_VERSION \         
         cuda-cusolver-dev-$CUDA_PKG_VERSION \         
         cuda-cublas-dev-$CUDA_PKG_VERSION \         
         cuda-cufft-dev-$CUDA_PKG_VERSION \         
         cuda-curand-dev-$CUDA_PKG_VERSION \         
         cuda-cusparse-dev-$CUDA_PKG_VERSION \         
         cuda-npp-dev-$CUDA_PKG_VERSION \         
         cuda-cudart-dev-$CUDA_PKG_VERSION \         
         cuda-driver-dev-$CUDA_PKG_VERSION \
         cuda-samples-$CUDA_PKG_VERSION && \
     rm -rf /var/lib/apt/lists/*
#
# dbk -- added cuda-samples-$CUDA_PKG_VERSION
# adding freeglut3-dev and deps for OpenGL support
# Note: this will greatly increase the size of this image!
RUN  apt-get install -y freeglut3-dev   

ENV LIBRARY_PATH /usr/local/cuda/lib64/stubs:${LIBRARY_PATH}

USAGE:
nvidia-docker run -it -v $HOME/docker:/projects -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY dbkdoc/my-cuda8-dev-opengl:latest

NOTE: I use "USER NAMESPACES" when I run X with Docker
https://www.pugetsystems.com/labs/hpc/Docker-and-NVIDIA-docker-on-your-workstation-Setup-User-Namespaces-906/

Docker Pull Command
Owner
dbkdoc