Giter Site home page Giter Site logo

thibaultroyet / docker-python-deep-learning-gpu Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 422 KB

Docker Python Deep Learning GPU

License: MIT License

Dockerfile 100.00%
docker deep-learning tensorflow tensorflow2 python python3 pytorch docker-compose scikit-learn nvidia

docker-python-deep-learning-gpu's Introduction

Docker Python Deep Learning GPU

This is a docker image for deep learning that I created in march 2020. The docker can use nvidia GPU therefore the docker image is quite big (6GB+). You can check https://hub.docker.com/r/nvidia/cuda/ if you want to switch the based image but make sure that its compatible with the tensorflow version.

Using docker-compose you can avoid the very long command line to start your container and its easy to modify! Don't hesitate to add a ton of library like Pytorch, OpenCV, The dockerfile is very short and easy to modify on purpose! :)

Finaly you might want to check the docker-compose.yml for different purposes:

  • If you want or don't want to use your nvidia GPU, check the runtime section
  • If you want to add a shared volume (between you conputer and the container, Very usefull!)
  • If you want to have a fixed value for you jupyter token that you need everytime you start the jupyter

Included Libraries

  • Ubuntu 18.04 LTS
  • CUDA 10.1
  • Python 3.8
  • Tensorflow 2.1
  • Jupyter Notebook
  • Numpy, Scikit Learn, Scikit Image, Pandas, Matplotlib

Getting Started

Prerequisites

You will need to have installed:

Installing

You just need to clone the repo.

git clone [email protected]:ThibaultRoyet/Docker-Python-Deep-Learning-GPU.git
cd Docker-Python-Deep-Learning-GPU
docker-compose build

Running

Go in the folder and start the container

docker-compose up

After you start the container you can access to jupyter that as been automaticly start on this address: http://localhost:18888/

And you can acces to the terminal container using your terminal with the following command line.

docker-compose exec notebook bash

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Issues

Common issues

GPU Runtime problems: docker/compose#6691 https://stackoverflow.com/questions/59222651/error-the-compose-file-docker-compose-yaml-is-invalid-because-unsupported

root permissions: https://stackoverflow.com/questions/48957195/how-to-fix-docker-got-permission-denied-issue

Usefull link

Hardware compatibilty: https://www.tensorflow.org/install/gpu?hl=fr#hardware_requirements

Cuda image: https://hub.docker.com/r/nvidia/cuda/

docker-python-deep-learning-gpu's People

Contributors

thibaultroyet avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.