Table des matières

Jupyter avec Docker

Introduction

https://hub.docker.com/r/jupyter/scipy-notebook/

Dans les settings partager le volume C: ou D: et créer un répertoire pour stocker les données dans les container via les volumes.

choisir une image https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html#jupyter-scipy-notebook

Numpy

Aller sur https://hub.docker.com/r/jupyter/scipy-notebook/tags pour choisir un tag de version pour garantir que la même installation est utilisée. Ne pas mettre de tag de version pour utiliser la derniere. version.

pour utiliser le répertoire home dans docker

docker run --rm -p 10000:8888 -v "$PWD":/home/jovyan/work jupyter/scipy-notebook:e5c5a7d3e52d
docker run --rm -p 10000:8888 -v E:/docker-data:/home/jovyan/work jupyter/scipy-notebook:e5c5a7d3e52d

Etendre l'image

Dockerfile
FROM jupyter/minimal-notebook:177037d09156
# Get the latest image tag at:
# https://hub.docker.com/r/jupyter/minimal-notebook/tags/
# Inspect the Dockerfile at:
# https://github.com/jupyter/docker-stacks/tree/master/minimal-notebook/Dockerfile
 
# install additional package...
RUN pip install --yes astropy