服务端:
docker run -itd --name vpsstatus -p 43434:43434 -p 8081:8081 -v /root/vpsstatus:/usr/local/ServerStatus/server ubuntu:latest
#在/root/vpsstatus里放config.json
#在宝塔里弄个域名反代8081端口就可以了,或者直接IP:8081
#进入容器
docker exec -it vpsstatus bash
apt -y update
apt install wget curl python3 -y
#然后
wget https://raw.githubusercontent.com/CokeMine/ServerStatus-Hotaru/master/status.sh && bash status.sh s
客户端:
docker run -itd --name vpsstatus --network host ubuntu:latest
#进入容器
docker exec -it vpsstatus bash
apt -y update
apt install wget curl python -y
#然后
wget https://raw.githubusercontent.com/CokeMine/ServerStatus-Hotaru/master/status.sh && bash status.sh c