Sign inSign up

nventiveux/docker-jupyter

By nventiveux

•Updated over 9 years ago

Docker image for Jupyter Notebook installation.

Image
1

979

nventiveux/docker-jupyter repository overview

⁠docker-jupyter

Jupyter Notebook Docker image.

⁠Quick start

Clone this repository and build the Docker image.

$ git clone [email protected]:nVentiveUX/docker-jupyter.git
$ cd docker-jupyter
# With a proxy, add "--build-arg http_proxy=http://$(hostname):3128/ --build-arg https_proxy=http://$(hostname):3128/"
$ docker build --force-rm -t nventiveux/docker-jupyter -t nventiveux/docker-jupyter:1.0.0 .

Test the container

$ docker run --rm \
  --name jupyter_$USER \
  --user $(id -u):$(id -g) \
  -h $(hostname)_jupyter_$USER \
  -p 8888:8888 \
  -v $SSH_AUTH_SOCK:/ssh-agent \
  -e SSH_AUTH_SOCK=/ssh-agent \
  -v ~/.ssh:/tmp/.ssh \
  -v /etc/passwd:/etc/passwd:ro \
  -v $(pwd):/notebooks nventiveux/docker-jupyter-tigerplm:latest

Run the container

$ {
sudo cp systemd/[email protected] /etc/systemd/system/ &&
sudo cp systemd/[email protected] /etc/default/docker-jupyter@$USER &&
sudo systemctl daemon-reload &&
sudo systemctl enable docker-jupyter@$USER.service;
}

Provide notebooks to run

$ sudo vi /etc/default/docker-jupyter@$USER

Start Jupyter

$ {
sudo systemctl start docker-jupyter@$USER.service &&
sudo systemctl status -l docker-jupyter@$USER.service;
}

Tag summary

Content type

Image

Digest

Size

111.2 MB

Last updated

over 9 years ago

docker pull nventiveux/docker-jupyter