[minecraft-server] General info about Docker port mappings and container naming

This commit is contained in:
Geoff Bourne
2014-09-20 15:54:23 -05:00
parent 77541a9689
commit 84521eca53
2 changed files with 20 additions and 1 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.idea/

View File

@@ -4,7 +4,25 @@ To simply use the latest stable version, run
docker run -d -p 25565:25565 itzg/minecraft-server
where the default server port, 25565, will be exposed on your host machine.
where the default server port, 25565, will be exposed on your host machine. If you want to serve up multiple
Minecraft servers or just use an alternate port, change the host-side port mapping such as
docker run -p 25566:25565 ...
will service port 25566.
Speaking of multiple servers, it's handy to give your containers explicit names using `--name`, such as
docker run -d -p 25565:25565 --name minecraft-vanilla itzg/minecraft-server
With that you can easily view the logs, stop, or re-start the container:
docker logs -f minecraft-vanilla
( Ctrl-C to exit logs action )
docker stop minecraft-vanilla
docker start minecraft-vanilla
## EULA Support