update-docker-image

This commit is contained in:
xubiaolin 2024-01-06 21:21:53 +08:00
parent ddfce29c28
commit 56d86d3e7e

View File

@ -1,6 +1,8 @@
#!/bin/bash
function install() {
docker pull xubiaolin/zerotier-planet:latest
echo "开始安装如果你已经安装了将会删除旧的数据10s后开始安装..."
sleep 10
@ -175,6 +177,8 @@ function uninstall() {
}
function update() {
docker pull xubiaolin/zerotier-planet:latest
docker inspect myztplanet >/dev/null 2>&1
if [ $? -ne 0 ]; then
echo "容器myztplanet不存在请先安装"