README.md 443 字节
Newer Older
L
Liangliang He 已提交
1 2 3 4
Development Docker Image
========

* Login in Xiaomi Docker Hub
L
Liangliang He 已提交
5 6 7 8 9

  ```
  docker login docker.d.xiaomi.net
  ```

L
Liangliang He 已提交
10
* Build the image
L
Liangliang He 已提交
11 12 13 14

  ```
  docker build -t docker.d.xiaomi.net/mace/mace-dev .
  ```
L
Liangliang He 已提交
15 16

* Push the image to Xiaomi Docker Hub
L
Liangliang He 已提交
17 18 19 20

  ```
  docker push docker.d.xiaomi.net/mace/mace-dev
  ```
L
Liangliang He 已提交
21 22

* Pull and run the image
L
Liangliang He 已提交
23 24 25 26 27

  ```
  # Set 'host' network to use ADB
  docker run -it --net=host docker.d.xiaomi.net/mace/mace-dev /bin/bash
  ```