Compare commits

...

12 Commits

Author SHA1 Message Date
7b70d806ad 0.14.20 2016-11-09 18:03:33 -08:00
433155549f 0.14.19 2016-11-04 13:38:12 -07:00
e7afbf7043 Merge branch 'master' of github.com:dtandersen/docker_factorio_server
Conflicts:
	0.14/Dockerfile
2016-11-04 20:28:37 +00:00
66a931efea don't cache 2016-11-04 20:25:41 +00:00
0df69d27ba 0.14.19 2016-11-04 20:25:28 +00:00
8b76ac8c69 minor text changes 2016-11-04 13:21:30 -07:00
39569f1ea2 minor text changes 2016-11-03 12:40:17 -07:00
8042aed70f minor text changes 2016-11-03 12:26:29 -07:00
52b9a5a0a5 0.14 is stable 2016-11-03 12:10:08 -07:00
bad5c783d7 minor text changes 2016-11-03 08:02:43 -07:00
72798cda20 minor text changes 2016-11-03 00:50:03 -07:00
57b221d308 minor text changes 2016-11-03 00:41:04 -07:00
2 changed files with 16 additions and 12 deletions

View File

@ -2,8 +2,8 @@ FROM frolvlad/alpine-glibc:alpine-3.4
MAINTAINER https://github.com/dtandersen/docker_factorio_server MAINTAINER https://github.com/dtandersen/docker_factorio_server
ENV VERSION=0.14.18 \ ENV VERSION=0.14.20 \
SHA1=8b919fe1c271ca773754f7644b72a8ddec363ae4 SHA1=d7c93754b543270aaa170aee01d8fd75fcc32c58
RUN mkdir /opt && \ RUN mkdir /opt && \
apk --no-cache add curl tini pwgen && \ apk --no-cache add curl tini pwgen && \

View File

@ -1,9 +1,8 @@
# Factorio [![Docker Pulls](https://img.shields.io/docker/pulls/dtandersen/factorio.svg)](https://hub.docker.com/r/dtandersen/factorio/) [![Docker Stars](https://img.shields.io/docker/stars/dtandersen/factorio.svg)](https://hub.docker.com/r/dtandersen/factorio/) # Factorio [![Docker Pulls](https://img.shields.io/docker/pulls/dtandersen/factorio.svg)](https://hub.docker.com/r/dtandersen/factorio/) [![Docker Stars](https://img.shields.io/docker/stars/dtandersen/factorio.svg)](https://hub.docker.com/r/dtandersen/factorio/)
* `0.14.18`, `0.14`, `latest` [(0.14.18/Dockerfile)](https://github.com/dtandersen/docker_factorio_server/blob/0.14.18/0.14/Dockerfile) * `0.14.20`, `0.14`, `latest` [(0.14/Dockerfile)](https://github.com/dtandersen/docker_factorio_server/blob/master/0.14/Dockerfile)
* `0.14.17` [(0.14.17/Dockerfile)](https://github.com/dtandersen/docker_factorio_server/blob/0.14.17/0.14/Dockerfile) * `0.14.19`, `stable` [(0.14/Dockerfile)](https://github.com/dtandersen/docker_factorio_server/blob/0.14.19/0.14/Dockerfile)
* `0.14.16` [(0.14.16/Dockerfile)](https://github.com/dtandersen/docker_factorio_server/blob/0.14.16/0.14/Dockerfile) * `0.13.20`, `0.13` [(0.13/Dockerfile)](https://github.com/dtandersen/docker_factorio_server/blob/master/0.13/Dockerfile)
* `0.13.20`, `0.13`, `stable` [(0.13.20/Dockerfile)](https://github.com/dtandersen/docker_factorio_server/blob/0.13.20/0.13/Dockerfile)
# What is Factorio? # What is Factorio?
@ -23,14 +22,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`. 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: For those new to Docker, here is an explanation of the options:
* `-d` - Run as a daemon ("detached"). * `-d` - Run as a daemon ("detached").
* `-P` - Expose all ports. * `-p` - Expose ports.
* `-v` - Mount `/tmp/factorio` on the local file system to `/factorio` in the container. * `-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). * `--name` - Name the container "factorio" (otherwise it has a funny random name).
Check the logs to see what happened: Check the logs to see what happened:
@ -109,13 +113,13 @@ To keep things simple, the container uses a single volume mounted at `/factorio`
## Troubleshooting ## Troubleshooting
**Server is listed in the in-game server browser, but users can't connect** **My server is listed in the server browser, but nobody can connect**
If the logs say `Own address is RIGHT IP:WRONG PORT`, then this could be the problem. Check the logs. If there is the line `Own address is RIGHT IP:WRONG PORT`, then this could be caused by the Docker proxy. If the the IP and port is correct it's probably a port forwarding or firewall issue instead.
By default, Docker routes outbound traffic through a proxy. The proxy changes the source UDP port, so the server list detects the wrong port. See [Incorrect port detected for docker hosted server](https://forums.factorio.com/viewtopic.php?f=49&t=35255). By default, Docker routes traffic through a proxy. The proxy changes the source UDP port, so the wrong port is detected. See the forum post *[Incorrect port detected for docker hosted server](https://forums.factorio.com/viewtopic.php?f=49&t=35255)* for details.
To fix this port problem, start the Docker service with the `--userland-proxy=false` switch. This tells Docker to use iptables rules instead of a proxy. Add the switch to the `DOCKER_OPTS` variable or `ExecStart` in the Docker systemd service definition. The location of these files varies by OS. To fix the incorrect port, start the Docker service with the `--userland-proxy=false` switch. Docker will route traffic with iptables rules instead of a proxy. Add the switch to the `DOCKER_OPTS` environment variable or `ExecStart` in the Docker systemd service definition. The specifics vary by operating system.
# Credits # Credits