Basic usage
- Install docker through this link
- In your docker-enabled terminal, run
docker run -t -i --rm -p 8888:8888 kwong999999/data-science-study-env-for-cs109
to start a Jupyter server on port 8888, note that--rm
means the instance is removed after you terminate this command, your changes to filesystem in the environment is not persisted - For Docker Machine users (Mac, Windows), go to
192.168.99.100:8888
, otherwise go tolocalhost:8888
- Run the
.ipynb
files from CS109 in thecourse
folder
Troubleshooting
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
When running docker command, if you get error message Apart from the case when docker daemon is not running, it's also possible that you don't have the correct environment variables set in your current shell (eg.in mac, you start your own shell instead of using Docker Quickstart Terminal
), try running eval `docker-machine env default`
to set up the environment variables