Add restart always options to vim-emu container 75/6275/1
authorMike Marchetti <mmarchetti@sandvine.com>
Thu, 14 Jun 2018 19:06:21 +0000 (15:06 -0400)
committerMike Marchetti <mmarchetti@sandvine.com>
Thu, 14 Jun 2018 19:06:21 +0000 (15:06 -0400)
Change-Id: I9e96bc1ff537143eb3b0cf87810dc0923efe1b40
Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
installers/full_install_osm.sh

index 2286aa4..3e675e1 100755 (executable)
@@ -777,10 +777,10 @@ function install_vimemu() {
     echo "Starting vim-emu Docker container 'vim-emu' ..."
     if [ -n "$INSTALL_LIGHTWEIGHT" ]; then
         # in lightweight mode, the emulator needs to be attached to netOSM
-        sudo docker run --name vim-emu -t -d --rm --privileged --pid='host' --network=netOSM -v /var/run/docker.sock:/var/run/docker.sock vim-emu-img python examples/osm_default_daemon_topology_2_pop.py
+        sudo docker run --name vim-emu -t -d --restart always --privileged --pid='host' --network=netOSM -v /var/run/docker.sock:/var/run/docker.sock vim-emu-img python examples/osm_default_daemon_topology_2_pop.py
     else
         # classic build mode
-        sudo docker run --name vim-emu -t -d --rm --privileged --pid='host' -v /var/run/docker.sock:/var/run/docker.sock vim-emu-img python examples/osm_default_daemon_topology_2_pop.py
+        sudo docker run --name vim-emu -t -d --restart always --privileged --pid='host' -v /var/run/docker.sock:/var/run/docker.sock vim-emu-img python examples/osm_default_daemon_topology_2_pop.py
     fi
     echo "Waiting for 'vim-emu' container to start ..."
     sleep 5