Fix save file environment variables in README.md. (#309)

This commit is contained in:
Richard Xia 2020-04-26 02:12:11 -07:00 committed by GitHub
parent 66c11b1a82
commit 1ab01d0277
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,22 +118,22 @@ sudo docker run -d \
-p 34197:34197/udp \ -p 34197:34197/udp \
-p 27015:27015/tcp \ -p 27015:27015/tcp \
-v /opt/factorio:/factorio \ -v /opt/factorio:/factorio \
-e ENABLE_SERVER_LOAD_LATEST=false \ -e LOAD_LATEST_SAVE=false \
-e SAVE_NAME=replaceme \ -e SAVE_NAME=replaceme \
--name factorio \ --name factorio \
--restart=always \ --restart=always \
factoriotools/factorio factoriotools/factorio
``` ```
To generate a new map set `ENABLE_GENERATE_NEW_MAP_SAVE=true` and specify `SAVE_NAME`: To generate a new map set `GENERATE_NEW_SAVE=true` and specify `SAVE_NAME`:
```shell ```shell
sudo docker run -d \ sudo docker run -d \
-p 34197:34197/udp \ -p 34197:34197/udp \
-p 27015:27015/tcp \ -p 27015:27015/tcp \
-v /opt/factorio:/factorio \ -v /opt/factorio:/factorio \
-e ENABLE_SERVER_LOAD_LATEST=false \ -e LOAD_LATEST_SAVE=false \
-e ENABLE_GENERATE_NEW_MAP_SAVE=true \ -e GENERATE_NEW_SAVE=true \
-e SAVE_NAME=replaceme \ -e SAVE_NAME=replaceme \
--name factorio \ --name factorio \
--restart=always \ --restart=always \