0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Dockerを使ってFactorioのサーバを立てる

Last updated at Posted at 2022-12-15

Dockerのインストール

$ curl -fsSL https://get.docker.com | sudo sh

権限の付与

$ sudo usermod -aG docker $(whoami)

起動

$ docker run -d  -p 34197:34197/udp  -p 27015:27015/tcp   -v ~/factorio:/factorio   --name factorio   --restart=always  -it factoriotools/factorio

ログの確認

$ docker logs factorio

再起動

バージョンアップなどの際には再起動を行います。

$ docker stop factorio ; docker rm factorio ; \
  sudo docker run -d  -p 34197:34197/udp  -p 27015:27015/tcp   -v ~/factorio:/factorio   --name factorio   --restart=always  -it factoriotools/factorio

コンソールに入る

$ docker exec -it factorio /bin/bash
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?