One liner to create Docker container for Jupyter notebook usage and data analysis on roadrunner (Xserve):
<code>docker run -p 8888:8888 -v /Users/sam/gitrepos/LabDocs/jupyter_nbs/sam/:/notebooks -v /Users/sam/data/:/data -v /Users/sam/analysis/:/analysis -it kubu4/bioinformatics:v11 /bin/bash</code>
This does the following:
-
Maps roadrunner port 8888 to Docker container port 8888 (for Jupyter notebook access outside of the Docker container)
-
Mounts my local Jupyter notebooks directory to the
/notebooks
directory in the Docker container
-
Mounts my local data directory to the
/data
directory in the Docker container
-
Mounts my local analysis directory to the
/analysis
directory in the Docker container
These commands allow me to interact with data outside of the Docker container.