How to Use PODAAC Docker Images for Data Recipes

How to Use PODAAC Docker Images for Data Recipes

Postby yiboj » Thu Mar 22, 2018 10:33 am

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

https://hub.docker.com/u/podaacdatarecipes/
podaac_docker_1.png
PODAAC Data Recipes on Docker Hub
podaac_docker_1.png (253.59 KiB) Viewed 1501 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
    192.168.99.100
   


6. Run image with container

Code: Select all
$ docker run -it --rm -p 8778:8888 podaacdatarecipes/colorbar_map start-notebook.sh --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

http://192.168.99.100:8778
jupyter_recipes.png
Jupyter Notebook Run
jupyter_recipes.png (179.4 KiB) Viewed 1500 times
yiboj
 
Posts: 80
Joined: Mon Mar 30, 2015 11:22 am

Return to Data Recipes