From fb21c945a9a543980fd057e7b4b865feb83ce0e4 Mon Sep 17 00:00:00 2001 From: Wei Ji <23487320+weiji14@users.noreply.github.com> Date: Wed, 27 Apr 2022 22:15:16 -0400 Subject: [PATCH 1/3] Document how to run pytorch-notebook docker container --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index d3dcb011..bb0ee276 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,14 @@ You can also run commands other than `jupyter` when starting a Docker container: docker run -it --rm pangeo/base-notebook:2021.09.30 /bin/bash ``` +If you're doing Machine Learning and want to use NVIDIA GPUs, +follow the instructions at https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html +to install `nvidia-docker`, and then start the Docker container like so: + +``` +docker run -it --rm --gpus all -p 8888:8888 pangeo/pytorch-notebook:master jupyter lab --ip 0.0.0.0 +``` + ### How to launch an image with a Cloud provider on your own account Many Cloud providers offer services to run Docker containers in their data centers. Instructions will vary, so we don't provide specifics here, but as an example you can check out these docs for running containers on [AWS ECS via Docker Compose](https://docs.docker.com/cloud/ecs-integration/) From 72c4d93c99ac75df99ea4fa348823f0148f2e86f Mon Sep 17 00:00:00 2001 From: Wei Ji <23487320+weiji14@users.noreply.github.com> Date: Wed, 27 Apr 2022 22:38:21 -0400 Subject: [PATCH 2/3] Clickable links to docker hub on the mermaid diagram --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index bb0ee276..96148857 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,11 @@ graph TD; base-notebook-->pangeo-notebook; pangeo-notebook-->pytorch-notebook; pangeo-notebook-->ml-notebook; + click base-image "https://hub.docker.com/r/pangeo/base-image" "Open this in a new tab" _blank + click base-notebook "https://hub.docker.com/r/pangeo/base-notebook" "Open this in a new tab" _blank + click pangeo-notebook "https://hub.docker.com/r/pangeo/pangeo-notebook" "Open this in a new tab" _blank + click pytorch-notebook "https://hub.docker.com/r/pangeo/pytorch-notebook" "Open this in a new tab" _blank + click ml-notebook "https://hub.docker.com/r/pangeo/ml-notebook" "Open this in a new tab" _blank ``` ### How to use the pangeo-notebook image with Binder From 732811a0f6be5c7b859d783e4786ab694a208e32 Mon Sep 17 00:00:00 2001 From: Wei Ji <23487320+weiji14@users.noreply.github.com> Date: Thu, 28 Apr 2022 13:52:56 -0400 Subject: [PATCH 3/3] Mention running docker containers via Azure Container Instances --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 96148857..3033b201 100644 --- a/README.md +++ b/README.md @@ -87,8 +87,12 @@ docker run -it --rm --gpus all -p 8888:8888 pangeo/pytorch-notebook:master jupyt ### How to launch an image with a Cloud provider on your own account -Many Cloud providers offer services to run Docker containers in their data centers. Instructions will vary, so we don't provide specifics here, but as an example you can check out these docs for running containers on [AWS ECS via Docker Compose](https://docs.docker.com/cloud/ecs-integration/) +Many Cloud providers offer services to run Docker containers in their data centers. +Instructions will vary, so we don't provide specifics here, but as an example, +check out these docs for running containers on the cloud via Docker Compose: +- [Amazon Elastic Container Service (ECS)](https://docs.docker.com/cloud/ecs-integration) +- [Azure Container Instances (ACI)](https://docs.docker.com/cloud/aci-integration) ### How to install just the conda environment