Compare commits

...

21 Commits

Author SHA1 Message Date
a459aeaf6e Merge pull request #2 from jaredledvina/feature/update-v-0.14.22
Bump version to 0.14.22
2017-02-04 20:05:18 -08:00
0baaa7b76c Bump version to 0.14.22 2017-02-03 18:26:26 -05:00
acd32abdc5 0.14.21 is stable 2016-11-30 10:35:58 -08:00
ac19dc2e33 minor text changes 2016-11-24 19:47:53 -08:00
fff8bec4c2 minor text changes 2016-11-24 19:46:21 -08:00
702d22a8c0 minor text changes 2016-11-24 19:45:05 -08:00
99969df99d 0.14.21 2016-11-24 19:32:02 -08:00
223faba61f 0.14.21 2016-11-24 19:28:57 -08:00
d245b75420 promoted 0.14.20 to stable 2016-11-17 10:12:34 -08:00
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 22 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
ENV VERSION=0.14.18 \
SHA1=8b919fe1c271ca773754f7644b72a8ddec363ae4
ENV VERSION=0.14.22 \
SHA1=c43fa0d750e8347ec466ce165053db3cd3dc2fe0
RUN mkdir /opt && \
apk --no-cache add curl tini pwgen && \

View File

@ -1,9 +1,14 @@
# 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.17` [(0.14.17/Dockerfile)](https://github.com/dtandersen/docker_factorio_server/blob/0.14.17/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`, `stable` [(0.13.20/Dockerfile)](https://github.com/dtandersen/docker_factorio_server/blob/0.13.20/0.13/Dockerfile)
* `0.14.22`, `0.14`, `latest`, 'stable' [(0.14/Dockerfile)](https://github.com/dtandersen/docker_factorio_server/blob/master/0.14/Dockerfile)
* `0.13.20`, `0.13` [(0.13/Dockerfile)](https://github.com/dtandersen/docker_factorio_server/blob/master/0.13/Dockerfile)
*Tag philosophy*
* `latest` - highest version: may be experimental.
* `stable` - highest version declared stable.
* `0.x` - highest version in a branch: may be experimental.
* `0.x.y` - a specific version.
# What is Factorio?
@ -23,14 +28,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 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:
@ -109,13 +119,13 @@ To keep things simple, the container uses a single volume mounted at `/factorio`
## 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