Closed mandarup closed 8 years ago
on linux ubuntu (linux-mint) gpu build
linux ubuntu (linux-mint)
sudo docker build -t floydhub/dl-docker:gpu -f Dockerfile.gpu .
build is successful
sudo docker build -t floydhub/dl-docker:gpu -f Dockerfile.gpu . Sending build context to Docker daemon 282.6 kB Step 1 : FROM nvidia/cuda:7.5-cudnn4-devel ---> 86ef0e729cda Step 2 : MAINTAINER Sai Soundararaj <saip@outlook.com> ---> Using cache ---> 8cea41f5b411 Step 3 : ARG THEANO_VERSION=rel-0.8.2 ---> Using cache ---> ea66ac71b25d Step 4 : ARG TENSORFLOW_VERSION=0.8.0 ---> Using cache ---> d43f4d0c328e Step 5 : ARG TENSORFLOW_ARCH=gpu ---> Using cache ---> 5ff4178a7248 Step 6 : ARG KERAS_VERSION=1.0.3 ---> Using cache ---> b53b8aa6d4b0 Step 7 : ARG LASAGNE_VERSION=v0.1 ---> Using cache ---> 424f495fb439 Step 8 : ARG TORCH_VERSION=latest ---> Using cache ---> 9c2b8d50476a Step 9 : ARG CAFFE_VERSION=master ---> Using cache ---> 07c51d845d4d Step 10 : RUN apt-get update && apt-get install -y bc build-essential cmake curl g++ gfortran git libffi-dev libfreetype6-dev libhdf5-dev libjpeg-dev liblcms2-dev libopenblas-dev liblapack-dev libopenjpeg2 libpng12-dev libssl-dev libtiff5-dev libwebp-dev libzmq3-dev nano pkg-config python-dev software-properties-common unzip vim wget zlib1g-dev && apt-get clean && apt-get autoremove && rm -rf /var/lib/apt/lists/* && update-alternatives --set libblas.so.3 /usr/lib/openblas-base/libblas.so.3 ---> Using cache ---> f0cf4251dbea Step 11 : RUN curl -O https://bootstrap.pypa.io/get-pip.py && python get-pip.py && rm get-pip.py ---> Using cache ---> 54c1f116330c Step 12 : RUN pip --no-cache-dir install pyopenssl ndg-httpsclient pyasn1 ---> Using cache ---> 5809e433f945 Step 13 : RUN apt-get update && apt-get install -y python-numpy python-scipy python-nose python-h5py python-skimage python-matplotlib python-pandas python-sklearn python-sympy && apt-get clean && apt-get autoremove && rm -rf /var/lib/apt/lists/* ---> Using cache ---> 2c2b85d277ba Step 14 : RUN pip --no-cache-dir install --upgrade ipython && pip --no-cache-dir install Cython ipykernel jupyter path.py Pillow pygments six sphinx wheel zmq && python -m ipykernel.kernelspec ---> Using cache ---> 398087ae431b Step 15 : RUN pip --no-cache-dir install https://storage.googleapis.com/tensorflow/linux/${TENSORFLOW_ARCH}/tensorflow-${TENSORFLOW_VERSION}-cp27-none-linux_x86_64.whl ---> Using cache ---> a17e2ed331e2 Step 16 : RUN apt-get update && apt-get install -y libboost-all-dev libgflags-dev libgoogle-glog-dev libhdf5-serial-dev libleveldb-dev liblmdb-dev libopencv-dev libprotobuf-dev libsnappy-dev protobuf-compiler && apt-get clean && apt-get autoremove && rm -rf /var/lib/apt/lists/* ---> Using cache ---> dfc383b9d30d Step 17 : RUN git clone -b ${CAFFE_VERSION} --depth 1 https://github.com/BVLC/caffe.git /root/caffe && cd /root/caffe && cat python/requirements.txt | xargs -n1 pip install && mkdir build && cd build && cmake -DUSE_CUDNN=1 -DBLAS=Open .. && make -j"$(nproc)" all && make install ---> Using cache ---> 2026f5066caf Step 18 : ENV CAFFE_ROOT /root/caffe ---> Using cache ---> 31e437fc98c6 Step 19 : ENV PYCAFFE_ROOT $CAFFE_ROOT/python ---> Using cache ---> d248d88f107f Step 20 : ENV PYTHONPATH $PYCAFFE_ROOT:$PYTHONPATH PATH $CAFFE_ROOT/build/tools:$PYCAFFE_ROOT:$PATH ---> Using cache ---> e8fdd3d738d0 Step 21 : RUN echo "$CAFFE_ROOT/build/lib" >> /etc/ld.so.conf.d/caffe.conf && ldconfig ---> Using cache ---> 6079662e13a0 Step 22 : RUN pip --no-cache-dir install git+git://github.com/Theano/Theano.git@${THEANO_VERSION} && echo "[global]\ndevice=gpu\nfloatX=float32\noptimizer_including=cudnn\nmode=FAST_RUN \n[lib]\ncnmem=0.95 \n[nvcc]\nfastmath=True \n[blas]\nldflag = -L/usr/lib/openblas-base -lopenblas \n[DebugMode]\ncheck_finite=1" > /root/.theanorc ---> Using cache ---> aafc9ad664fe Step 23 : RUN pip --no-cache-dir install git+git://github.com/fchollet/keras.git@${KERAS_VERSION} ---> Using cache ---> 9acafd663408 Step 24 : RUN pip --no-cache-dir install git+git://github.com/Lasagne/Lasagne.git@${LASAGNE_VERSION} ---> Using cache ---> 05df28c4f892 Step 25 : RUN git clone https://github.com/torch/distro.git /root/torch --recursive && cd /root/torch && bash install-deps && yes no | ./install.sh ---> Using cache ---> 69629e30f2b7 Step 26 : ENV LUA_PATH '/root/.luarocks/share/lua/5.1/?.lua;/root/.luarocks/share/lua/5.1/?/init.lua;/root/torch/install/share/lua/5.1/?.lua;/root/torch/install/share/lua/5.1/?/init.lua;./?.lua;/root/torch/install/share/luajit-2.1.0-beta1/?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua' LUA_CPATH '/root/.luarocks/lib/lua/5.1/?.so;/root/torch/install/lib/lua/5.1/?.so;./?.so;/usr/local/lib/lua/5.1/?.so;/usr/local/lib/lua/5.1/loadall.so' PATH /root/torch/install/bin:$PATH LD_LIBRARY_PATH /root/torch/install/lib:$LD_LIBRARY_PATH DYLD_LIBRARY_PATH /root/torch/install/lib:$DYLD_LIBRARY_PATH ---> Using cache ---> 69ccd7e2486d Step 27 : ENV LUA_CPATH '/root/torch/install/lib/?.so;'$LUA_CPATH ---> Using cache ---> a260921b541f Step 28 : RUN luarocks install nn && luarocks install cutorch && luarocks install cunn && cd /root && git clone https://github.com/soumith/cudnn.torch.git && cd cudnn.torch && git checkout R4 && luarocks make && cd /root && git clone https://github.com/facebook/iTorch.git && cd iTorch && luarocks make ---> Using cache ---> 1284e34add77 Step 29 : COPY jupyter_notebook_config.py /root/.jupyter/ ---> Using cache ---> 4f392face607 Step 30 : COPY run_jupyter.sh /root/ ---> Using cache ---> 9c1e4a5a9fb0 Step 31 : EXPOSE 6006 8888 ---> Using cache ---> 65564411cbaf Step 32 : WORKDIR "/root" ---> Using cache ---> 78bae8af2123 Step 33 : CMD /bin/bash ---> Using cache ---> df3aa65f748a Successfully built df3aa65f748a
but trying to start
sudo nvidia-docker run -it -p 8888:8888 -p 6006:6006 -v /sharedfolder:/root/sharedfolder floydhub/dl-docker:gpu bash
gives following error
nvidia-docker: command not found
cpu version works
it was nvidia-docker installation issue
on
linux ubuntu (linux-mint)
gpu buildbuild is successful
but trying to start
gives following error
cpu version works