Page 1 of 1

How to Use PODAAC Docker Images for Data Recipes

PostPosted: Thu Mar 22, 2018 10:33 am
by yiboj
As the docker container/images are getting popular in recent years, we are working on putting some of our popular data recipes into docker hub. The data community can pull the data recipes in images to run in their own operating system or environment. The recipe will be run in jupyter notebook if it is written in python, and will be run in shell command otherwise.

Here we list a few steps for user to follow in order to try the recipes in docker images:

1. Familiar with and install docker

Please refer to docker documentation site or our tutorial post "Jumpstart on Docker"

2. Sign up and Login in Docker Hub

Code: Select all
$ docker login

3. Explore PODAAC Data Recipes images on Docker Hub
PODAAC Data Recipes on Docker Hub
podaac_docker_1.png (253.59 KiB) Viewed 1931 times

4. Download or Pull Images to Local Disk

Code: Select all
$ docker pull podaacdatarecipes/colorbar_map

5. Check you docker IP

Code: Select all
    $ docker-machine ip

6. Run image with container

Code: Select all
$ docker run -it --rm -p 8778:8888 podaacdatarecipes/colorbar_map --NotebookApp.token=''
Executing the command: jupyter notebook --NotebookApp.token=

[W 18:44:43.604 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended.

[W 18:44:43.604 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using authentication. This is highly insecure and not recommended.

[I 18:44:43.644 NotebookApp] JupyterLab beta preview extension loaded from /opt/conda/lib/python3.6/site-packages/jupyterlab

[I 18:44:43.644 NotebookApp] JupyterLab application directory is /opt/conda/share/jupyter/lab

[I 18:44:43.657 NotebookApp] Serving notebooks from local directory: /home/jovyan

[I 18:44:43.658 NotebookApp] 0 active kernels

[I 18:44:43.658 NotebookApp] The Jupyter Notebook is running at:

[I 18:44:43.658 NotebookApp] http://[all ip addresses on your system]:8888/

[I 18:44:43.658 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).

7. Put you IP into browser to launch jupyter nootbook
Jupyter Notebook Run
jupyter_recipes.png (179.4 KiB) Viewed 1930 times