mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-13 05:42:28 +00:00
[minecraft-server] Update README with new TYPE option
This commit is contained in:
parent
01d9c54575
commit
22e1abe628
1 changed files with 21 additions and 1 deletions
|
@ -73,6 +73,26 @@ or a specific version:
|
|||
|
||||
docker run -d -e VERSION=1.7.9 ...
|
||||
|
||||
## Running a Forge Server
|
||||
|
||||
By default the container will run the selected "vanilla" (aka official) Minecraft server, but
|
||||
you can also choose to run the `LATEST` or a specific version of a [Forge server](http://www.minecraftforge.net/wiki/).
|
||||
Enable Forge server mode, by adding a `-e TYPE=FORGE` to your command-line, such as
|
||||
|
||||
$ mkdir forge
|
||||
$ docker run -d -v $(pwd)/forge:/data -e TYPE=FORGE -e VERSION=1.7.10 \
|
||||
-p 25565:25565 -e EULA=TRUE itzg/minecraft
|
||||
|
||||
**NOTE**: You *must* use a host-attached volume of the container's `/data` in order
|
||||
to access the `mods` directory. [Docker 1.6 has a scheduled feature](https://github.com/docker/docker/pull/10198) to extend `docker cp` to enable
|
||||
copying files *into* a container -- until then attach the `/data` volume.
|
||||
|
||||
If your container is running when adding mods, you'll need to restart it to pick those
|
||||
up:
|
||||
|
||||
docker stop $ID
|
||||
docker start $ID
|
||||
|
||||
## Server configuration
|
||||
|
||||
### Op/Administrator Players
|
||||
|
|
Loading…
Reference in a new issue