mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
[mc] Upgrade to rcon-cli 1.3
This commit is contained in:
parent
72d055ac19
commit
615d12bce3
@ -28,7 +28,7 @@ RUN addgroup -g 1000 minecraft \
|
||||
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/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-minecraft.sh /start-minecraft
|
||||
COPY mcadmin.jq /usr/share
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user