Skip to content

Commit

Permalink
Clarifying docker launch
Browse files Browse the repository at this point in the history
  • Loading branch information
definitelynotmcarilli committed Apr 30, 2019
1 parent 86bd6c7 commit 39e153a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/docker/README.md
Expand Up @@ -21,6 +21,13 @@ If you want to rebuild your image, and force the latest Apex to be cloned and in
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](https://github.com/NVIDIA/nvidia-docker), for example:
```
docker run --runtime=nvidia -it --rm --ipc=host new_image_with_apex
```

## 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,
Expand Down

0 comments on commit 39e153a

Please sign in to comment.