Merge pull request #198 from stevenvanrossem/master
[osm/vim-emu.git] / utils / docker / README.md
1 # Docker build scripts for son-emu
2
3 This directory holds the Dockerfile to build son-emu as a docker container.
4 This is an easy way to deploy son-emu.
5 To build this container:
6
7 (container tag can be freely chosen)
8 ```
9 docker build -t registry.sonata-nfv.eu:5000/son-emu .
10 ```
11
12 To deploy this container:
13
14 (choose an example topology to start in the emulator)
15 ```
16 docker run -d -i --net='host' --pid='host' --privileged='true' --name 'son-emu' \
17     -v '/var/run/docker.sock:/var/run/docker.sock' \
18     -p 5000:5000 \
19     -p 9091:9091 \
20     -p 8081:8081 \
21     -p 5001:5001 \
22     registry.sonata-nfv.eu:5000/son-emu 'python src/emuvim/examples/sonata_simple_topology.py'
23 ```