Skip to content

Instantly share code, notes, and snippets.

View romandvoskin's full-sized avatar

Roman Dvoskin romandvoskin

View GitHub Profile
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQENBF4nRAEBCADkfwVFju6cOhZz6M/DNRLVkLDP6YyFfCMAnrPgkyrtb/b5IsF6
nJF6QO6PBlTRukNMfdPGIYtLIkmXfIPqxxPkx/R/Xyfk8D69U2QWx0bEg17EHTKK
yQ3ax+pG4xl7wONVknSGyN+Nl9JhFqA5xs2vPJWMh7660wH+1C2EOxge2Hz40rCJ
eYjmNdvr4tVZbSv/Q2nZwLJ/ybH5KqEBs9Il+hEPng2wcSpNJ/OQKkQ0ii9dhn7P
WUcjkhZyTICZCEq3/2mLpnzGPJO3iAo4wb98U3QoEreaM9Vc0QHKo9l4uhj6cyLv
kZOpx5iv8JWE1kxS2rKDC7Yylnq3uBQ9MSUnABEBAAG0JVJvbWFuIER2b3NraW4g
PHJkdm9za2luQHBvbG9uaWV4LmNvbT6JAVQEEwEIAD4WIQSm4+CkmzCLO4HPN8ZW
H/XBKPVFwQUCXidEAQIbAwUJA8JnAAULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAK
@romandvoskin
romandvoskin / steps.md
Last active February 10, 2019 04:50
Run continuumio/anaconda on Docker on a Mac

Steps

Pre-Req: Use Docker for Mac

  1. Get the image via docker pull continuumio/anaconda
  2. Create a directory for notebooks. Ex: mkdir ~/notebooks
  3. Run docker image and use the created directory as a mounted volume via docker run -d -p 8888:8888 -v ~/notebooks:/opt/notebooks continuumio/anaconda /bin/bash -c "/opt/conda/bin/conda install jupyter -y --quiet && mkdir -p /opt/notebooks && /opt/conda/bin/jupyter notebook --notebook-dir=/opt/notebooks --ip=0.0.0.0 --port=8888 --no-browser --allow-root"
  4. Get the docker container id via docker ps | grep -i "continuumio/anaconda" | awk '{print $1}'
  5. Wait 60 seconds for the container to install software
  6. Get the URL and token to access Jupyter via docker logs <containerId> NOTE: You may have to keep repeating docker logs ... until you see output like this: