Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/main/apex/examples/docker/README.md
Views: 792
Option 1: Create a new container with Apex
Dockerfile installs the latest Apex on top of an existing image. Run
By default, Dockerfile uses NVIDIA's Pytorch container as the base image, which requires an NVIDIA GPU Cloud (NGC) account. If you don't have an NGC account, you can sign up for free by following the instructions here.
Alternatively, you can supply your own base image via the BASE_IMAGE
build-arg. BASE_IMAGE
must have Pytorch and Cuda installed. For example, any -devel
image for Pytorch 1.0 and later from the official Pytorch Dockerhub may be used:
If you want to rebuild your image, and force the latest Apex to be cloned and installed, make any small change to the SHA
variable in Dockerfile.
Warning: Currently, the non--devel
images on Pytorch Dockerhub do not contain the Cuda compiler nvcc
. Therefore, images whose name does not contain -devel
are not eligible candidates for BASE_IMAGE
.
Running your Apex container
Like any Cuda-enabled Pytorch container, a container with Apex should be run via nvidia-docker, for example:
Option 2: Install Apex in a running container
Instead of building a new container, it is also a viable option to git clone https://github.com/NVIDIA/apex.git
on bare metal, mount the Apex repo into your container at launch by running, for example,
then go to /apex/in/container within the running container and