Notes 1
docker build . -t qiskit-notebook
Build the Jupyter Notebook image as defined in Dockerfile
. Then, tags (-t
) it with the name 'qiskit-notebook'. Building the image will automatically install all of the dependencies listed in requirements.txt
.
docker run -p 8888:8888 --name notebook --env-file .env --rm -it -v "$(pwd)/notebook:/home/jovyan/work" qiskit-notebook
The above command runs the docker image previously created. It maps (-p
) the container port 8888
to 8888
and names the container 'notebook'. It will also run the image with an integrated terminal (-it
) and mount a volume (-v
) from ./notebook
to the work
directory once opened in the Jupyter web editor. It will also conveniently remove (--rm
) the container after you CTRL+C
to kill the Jupyter server.
Most of the learning/notes is within the Jupyter notebook.