[mc] Upgrade to rcon-cli 1.3

This commit is contained in:
Geoff Bourne
2017-04-09 08:30:20 -05:00
parent 72d055ac19
commit 615d12bce3
2 changed files with 7 additions and 4 deletions
+6 -3
View File
@@ -42,13 +42,16 @@ access the Minecraft server console:
docker exec -i mc rcon-cli
```
or
Note: The `-i` is required for interactive use of rcon-cli.
To run a simple, one-shot command, such as stopping a Minecraft server, pass the command as
arguments to `rcon-cli`, such as:
```
echo stop | docker exec -it mc rcon-cli
docker exec mc rcon-cli stop
```
Note: The `-i` is needed to attach to the standard *input* of the rcon-cli.
_The `-i` is not needed in this case._
In order to attach and interact with the Minecraft server, add `-it` when starting the container, such as