Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 552 Bytes

README.md

File metadata and controls

33 lines (26 loc) · 552 Bytes

docker-sshd-jupyter

Example of a dockerfile with sshd and jupyter notebook.

How to use

  1. Clone
git clone [email protected]:lune-sta/docker-sshd-jupyter.git
cd docker-sshd-jupyter
  1. Add your public key
$ vim authorized_keys
# or
$ cat ~/.ssh/authorized_keys  >> ./authorized_keys
  1. Build a docker image
$ sudo docker build -t jupyter .
  1. Run in the background
$ sudo docker run -p 18888:8888 -p 10022:22 -v workdir:/workdir -d jupyter
  1. Login with ssh
$ ssh -p 10022 -i ~/.ssh/id_rsa [email protected]