mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
parent
cd70cbcbea
commit
e7cc54092a
14
README.md
14
README.md
@ -145,8 +145,8 @@ Keep in mind that some versions of Minecraft server can't work on the newest ver
|
|||||||
|
|
||||||
## Healthcheck
|
## Healthcheck
|
||||||
|
|
||||||
This image contains [Dinnerbone's mcstatus](https://github.com/Dinnerbone/mcstatus) and uses
|
This image contains [mc-monitor](https://github.com/itzg/mc-monitor) and uses
|
||||||
its `ping` command to continually check on the container's. That can be observed
|
its `status` command to continually check on the container's. That can be observed
|
||||||
from the `STATUS` column of `docker ps`
|
from the `STATUS` column of `docker ps`
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -161,16 +161,6 @@ You can also query the container's health in a script friendly way:
|
|||||||
healthy
|
healthy
|
||||||
```
|
```
|
||||||
|
|
||||||
Finally, since `mcstatus` is on the `PATH` you can exec into the container
|
|
||||||
and use mcstatus directly and invoke any of its other commands:
|
|
||||||
|
|
||||||
```
|
|
||||||
> docker exec mc mcstatus localhost status
|
|
||||||
version: v1.12 (protocol 335)
|
|
||||||
description: "{u'text': u'A Minecraft Server Powered by Docker'}"
|
|
||||||
players: 0/20 No players online
|
|
||||||
```
|
|
||||||
|
|
||||||
## Deployment Templates and Examples
|
## Deployment Templates and Examples
|
||||||
|
|
||||||
### Helm Charts
|
### Helm Charts
|
||||||
|
2
mcstatus
2
mcstatus
@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "WARNING: mcstatus is deprecated; calling mc-monitor instead"
|
||||||
|
|
||||||
##### mcstatus shim for mc-monitor
|
##### mcstatus shim for mc-monitor
|
||||||
# handles translating calls to
|
# handles translating calls to
|
||||||
# mcstatus (host:port) (command)
|
# mcstatus (host:port) (command)
|
||||||
|
Loading…
Reference in New Issue
Block a user