mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2024-11-14 06:22:48 +01:00
mount volumes to /tmp
This commit is contained in:
parent
81edeb0183
commit
86ec899b06
15
run.sh
15
run.sh
@ -1,7 +1,12 @@
|
|||||||
|
mkdir -p /tmp/factorio
|
||||||
|
mkdir -p /tmp/factorio/mods
|
||||||
|
mkdir -p /tmp/factorio/saves
|
||||||
|
cp -n server-settings.example.json /tmp/factorio/server-settings.json
|
||||||
|
cp -n map-gen-settings.example.json /tmp/factorio/map-gen-settings.json
|
||||||
sudo docker run --rm -it \
|
sudo docker run --rm -it \
|
||||||
-v /home/vagrant/docker_factorio_server/server-settings.json:/opt/factorio/data/server-settings.json \
|
-v /tmp/factorio/server-settings.json:/opt/factorio/data/server-settings.json \
|
||||||
-v /home/vagrant/docker_factorio_server/map-gen-settings.json:/opt/factorio/data/map-gen-settings.json \
|
-v /tmp/factorio/map-gen-settings.json:/opt/factorio/data/map-gen-settings.json \
|
||||||
-v /data/mods:/opt/factorio/mods \
|
-v /tmp/factorio/mods:/opt/factorio/mods \
|
||||||
-v /data/saves:/opt/factorio/saves \
|
-v /tmp/factorio/saves:/opt/factorio/saves \
|
||||||
--name factorio \
|
--name factorio \
|
||||||
factorio
|
factorio "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user