[mc] Upgrade to rcon-cli 1.3

This commit is contained in:
Geoff Bourne committed 2017-04-09 08:30:20 -05:00
1 parent 72d055ac19
commit 615d12bce3
2 files changed
+7 -4

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@ RUN addgroup -g 1000 minecraft \
EXPOSE 25565 25575 EXPOSE 25565 25575
ADD https://github.com/itzg/restify/releases/download/1.0.4/restify_linux_amd64 /usr/local/bin/restify ADD https://github.com/itzg/restify/releases/download/1.0.4/restify_linux_amd64 /usr/local/bin/restify
ADD https://github.com/itzg/rcon-cli/releases/download/1.2/rcon-cli_linux_amd64 /usr/local/bin/rcon-cli ADD https://github.com/itzg/rcon-cli/releases/download/1.3/rcon-cli_linux_amd64 /usr/local/bin/rcon-cli
COPY start.sh /start COPY start.sh /start
COPY start-minecraft.sh /start-minecraft COPY start-minecraft.sh /start-minecraft
COPY mcadmin.jq /usr/share COPY mcadmin.jq /usr/share
+6 -3
View File
@@ -42,13 +42,16 @@ access the Minecraft server console:
docker exec -i mc rcon-cli 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 In order to attach and interact with the Minecraft server, add `-it` when starting the container, such as