Giter Club home page Giter Club logo

ml-env's Introduction

ML environment Docker image

Docker image with CUDA 8, cuDNN 5.1.10, Python 3, Theano, Keras, OpenCV, Matplotlib and Jupyter Notebook installed. GPU acceleration available if you use nvidia-docker.

Requirements

  • Installed Docker
  • If want to use GPU: installed nvidia-docker plugin for Docker and NVIDIA GPU drivers

Building image

docker build -t ml-env .

where ml-env can be replaced with any other name.

Running container

nvidia-docker run -it --rm -p 8888:8888 --volume $(pwd):/host_dir --workdir /host_dir ml-env bash

This command creates and starts container from previously built image (ml-env) with current host directory mounted as /host_dir and set as working directory.

What does this weird parameters mean?

  • -it - redirects std and stdout from container to your terminal.
  • --rm - removes container after exit.
  • -p 8888:8888 - exposes port 8888 (in:out) from container to host. Required by Jupyter Notebook.
  • --volume $(pwd):/host_dir - mounts current host directory ($(pwd)) in container in /host_dir. Instead of $(pwd) you can put any other path.
  • --workdir /host_dir - sets current directory in container to previously mounted.
  • ml-env - name of image to create container from.

Running directly Python or Jupyter

nvidia-docker run -it --rm -p 8888:8888 --volume $(pwd):/host_dir --workdir /host_dir ml-env python3 /host_dir/hello_world.py

or

nvidia-docker run -it --rm -p 8888:8888 --volume $(pwd):/host_dir --workdir /host_dir ml-env jupyter notebook

or any other command at the end instead of python3 or jupyter.

If you need Jupyter secured by password, run command below and enter password:

nvidia-docker run -it --rm -p 8888:8888 --volume $(pwd):/host_dir --workdir /host_dir ml-env run_secured_jupyter.sh

ml-env's People

Contributors

pawelkedra avatar

Watchers

Brian Cajes avatar James Cloos 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.