From 4026ec53592e89ec889726652cea70582a9afb1d Mon Sep 17 00:00:00 2001 From: David Andersen Date: Thu, 3 Nov 2016 08:02:43 -0700 Subject: [PATCH] minor text changes --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f84b067..ee284c3 100644 --- a/README.md +++ b/README.md @@ -23,14 +23,19 @@ NOTE: This is only the server. The game is available at [factorio.com](https://w Run the server to create the necessary folder structure and configuration files. For this example data is stored in `/tmp/factorio`. ``` -docker run -d -P -v /tmp/factorio:/factorio --name factorio dtandersen/factorio +docker run -d -p 34197:34197/udp -p 27015:27015/tcp \ + -v /tmp/factorio:/factorio \ + --name factorio \ + --restart=always \ + dtandersen/factorio ``` For those new to Docker, here is an explanation of the options: * `-d` - Run as a daemon ("detached"). -* `-P` - Expose all ports. +* `-p` - Expose all ports. * `-v` - Mount `/tmp/factorio` on the local file system to `/factorio` in the container. +* `--restart` - Restart the server if it crashes and at system start * `--name` - Name the container "factorio" (otherwise it has a funny random name). Check the logs to see what happened: