|
a |
|
b/docker/README.md |
|
|
1 |
Docker |
|
|
2 |
====== |
|
|
3 |
|
|
|
4 |
Run a Container |
|
|
5 |
--------------- |
|
|
6 |
|
|
|
7 |
We prepare a pre-built docker image on Docker Hub, based on PyTorch 1.8.1 and CUDA 11.1. |
|
|
8 |
To start a container with our docker image, use the following line. |
|
|
9 |
|
|
|
10 |
```bash |
|
|
11 |
docker run --gpus all -it milagraph/torchdrug |
|
|
12 |
``` |
|
|
13 |
|
|
|
14 |
Build Docker Image |
|
|
15 |
------------------ |
|
|
16 |
|
|
|
17 |
You may also use the Dockerfile provided in this folder to build an image from scratch. |
|
|
18 |
Run the following command in this directory. |
|
|
19 |
|
|
|
20 |
```bash |
|
|
21 |
docker build -t "your-image-name" . |
|
|
22 |
``` |