blob: db48f9e7d121fb2e96ca6cbd76cf55247774f466 [file] [log] [blame] [view]
dulalsaurab8c8e6332021-05-21 20:37:03 +00001
2[comments]: The original author of Mini-NDN docker is Md Ashiqur Rahman (marahman@email.arizona.edu)
3
4| :exclamation: Mini-NDN docker is in experimental phase, it uses older version of Mini-NDN and is incompatible with the current version |
5|-----------------------------------------------------------------------------------------------------------------------------------------|
6
7### `docker build` or `docker pull`
8
9The [Dockerfile](https://github.com/ashiqopu/docker-minindn/blob/master/Dockerfile) can be used directly to `build` an image from scratch.
10
11* Build with `Dockerfile`:
12 * Open terminal and use the following command:
13 ```bash
14 git clone https://github.com/ashiqopu/docker-minindn
15 cd docker-minindn
16 ```
17 * Type and enter.
18 ```bash
19 docker build -t minindn .
20 ```
21 * You can then access the container through shell with,
22 ```bash
23 docker run -m 4g --cpus=4 -it --rm --privileged \
24 -v /lib/modules:/lib/modules \
25 minindn bin/bash
26 ```
27
28* Pull from hub:
29 * Open a terminal and type:
30 ```bash
31 docker pull marahman/minindn:v0.2
32 ```
33
34 * You can then access the container through shell with,
35 ```bash
36 docker run -m 4g --cpus=4 -it --rm --privileged -e DISPLAY \
37 -v /tmp/.X11-unix:/tmp/.X11-unix \
38 -v /lib/modules:/lib/modules \
39 marahman/minindn:v0.2 bin/bash
40 ```
41
42### Notes:
43
44* Memory (-m), CPU (--cpus) are recommended by Mini-NDN.
45* `--privileged` is mandatory for underlying [Mininet](http://mininet.org/) to utilize virtual switch
46* Root directory on `run` is `/mini-ndn` containing the installation and examples.
47* GUI may not work for now due to docker and xterm setup issues and is independent from Mini-NDN.