README.md 1.29 KB
Newer Older
1
2
Dockerfile
===
3
## 1.Description
4
This is the Dockerfile of NNI project. It includes serveral popular deep learning frameworks and NNI. It is tested on `Ubuntu 16.04 LTS`:
5
6
7
8

```
CUDA 9.0, CuDNN 7.0
numpy 1.14.3,scipy 1.1.0
9
TensorFlow-gpu 1.10.0
10
Keras 2.1.6
11
12
PyTorch 0.4.1
scikit-learn 0.20.0
Lee's avatar
Lee committed
13
14
pandas 0.23.4
lightgbm 2.2.2
chicm-ms's avatar
chicm-ms committed
15
NNI v0.7
16
```
gongwuji's avatar
gongwuji committed
17
You can take this Dockerfile as a reference for your own customized Dockerfile. 
18

19
## 2.How to build and run
gongwuji's avatar
gongwuji committed
20
21
__Use the following command from `nni/deployment/docker` to build docker image__
```    
22
    docker build -t nni/nni .
23
24
25
26
27
28
```
__Run the docker image__
* If does not use GPU in docker container, simply run the following command
```
    docker run -it nni/nni
```
29
30
Note that if you want to use tensorflow, please uninstall tensorflow-gpu and install tensorflow in this docker container. Or modify `Dockerfile` to install tensorflow (without gpu) and build docker image.

31
32
33
34
35
36
37
* If use GPU in docker container, make sure you have installed [NVIDIA Container Runtime](https://github.com/NVIDIA/nvidia-docker), then run the following command
```
    nvidia-docker run -it nni/nni
```
or
```
    docker run --runtime=nvidia -it nni/nni
38
39
40
```

## 3.Directly retrieve the docker image
gongwuji's avatar
gongwuji committed
41
42
43
44
Use the following command to retrieve the NNI docker image from Docker Hub
```
docker pull msranni/nni:latest
```