kirychenkav / tidyverse_dl

Dockerfile for deep learning in Python and R

Home Page:https://hub.docker.com/r/felixleung/tidyverse_dl/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker image for deep learning

Docker Build Status

The image is based on rocker/tidyverse, with continuumio/miniconda3 chained on top. The conda environment is then built using dl_env_linux.yml from Udacity's deep-learning repo. Lastly, the R package rstudio/tensorflow is installed.

Jupyter notebook

To start a Jupyter Notebook:

$ docker run -it -v $PWD:/opt/nb -p 8888:8888 felixleung/tidyverse_dl /bin/bash -c "source activate dl && mkdir -p /opt/nb && jupyter notebook --notebook-dir=/opt/nb --ip='0.0.0.0' --port=8888 --no-browser"

Then simply follow the prompt.

RStudio

To start RStudio:

$ docker run -d -p 8787:8787 -v $PWD:/home/rstudio -e ROOT=TRUE felixleung/tidyverse_dl /bin/bash -c "source activate dl && /init"

Then in the browser go to http://localhost:8787/ and sign in.

It is necessary to then specify the conda env:

library(tensorflow)
use_condaenv("dl", conda = "/opt/conda/envs/dl/bin/conda", required = TRUE)

To verify everything is working:

sess = tf$Session()
hello <- tf$constant('Hello, TensorFlow!')
sess$run(hello)

About

Dockerfile for deep learning in Python and R

https://hub.docker.com/r/felixleung/tidyverse_dl/