Now making Docker automatically restart the container in case of crash.

parent f6d9d4cc
......@@ -25,7 +25,7 @@ fi
# Start the new container.
#
ID=$(docker run -d -v `pwd`:/home/waystone/source -v "$HOME:/root" -p 3000 -p 8080:8080 -p 22000:22000 -p 21025:21025/udp $TAG coffee source/index.coffee)
ID=$(docker run --restart=always -d -v `pwd`:/home/waystone/source -v "$HOME:/root" -p 3000 -p 8080:8080 -p 22000:22000 -p 21025:21025/udp $TAG coffee source/index.coffee)
if [ ! $ID ]; then exit 1; fi
echo "$TAG started. Running with ID '$ID'"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment