GithubHelp home page GithubHelp logo

nadejde / openttd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bateau84/openttd

0.0 1.0 0.0 34 KB

openttd docker container

Home Page: https://registry.hub.docker.com/u/bateau/openttd/

Shell 100.00%

openttd's Introduction

These images have been built and tested on docker 1.9.1. Previous versions may not run as smooth.

Usage

docker run -d -p 3979:3979/tcp -p 3979:3979/udp bateau/openttd:latest

For random port assignment replace

-p 3979:3979/tcp -p 3979:3979/udp

with

-P

Its set up to not load any games by default (new game) and it can be run without mounting a .openttd folder. However, if you want to load your savegames, mounting a .openttd folder is required.

Set

-e "loadgame=exit" 

to enable loading of save/autosave/exit.sav. For Openttd to save on exit you need to set "autosave_on_exit = true" in your openttd.cfg file under the [gui] section.

Set UID og GID of user in container to be the same as your user outside with seting env PUID and PGID. For example

-e PUID=1001 -e PGID=1000

For other save games use

-e "loadgame=true" -e "savename=your/save/game.sav"

Config files is located under /home/openttd/.openttd. To mount up your .openttd folder use

-v /path/to/your/.openttd:/home/openttd/.openttd

For example to run server and load my savegame game.sav:

docker run -d --name openttd -p 3979:3979/tcp -p 3979:3979/udp -v /home/<your_username>/.openttd:/home/openttd/.openttd -e PUID=<your_userid> -e PGID=<your_groupid> -e "loadgame=true" -e "savename=game.sav" bateau/openttd:latest

Other tags

  • 1.5.3
  • 1.5.2
  • 1.5.1
  • 1.5.0
  • 1.4.4
  • 1.5.0-rc1
  • 1.5.0-beta2
  • 1.5.0-beta1

openttd's People

Contributors

bateau84 avatar frodus avatar

Watchers

Andrei Nadejde avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.