Update install.sh

This commit is contained in:
midoks 2023-05-02 11:52:56 +08:00
parent acbdb013ae
commit c2c8ea0ce6
1 changed files with 6 additions and 10 deletions

View File

@ -46,16 +46,12 @@ Uninstall_Docker()
CMD=apt
fi
# if [ -f /usr/lib/systemd/system/docker.service ];then
# systemctl stop docker
# systemctl disable docker
# rm -rf /usr/lib/systemd/system/docker.service
# systemctl daemon-reload
# fi
# if [ -f $serverPath/docker/initd/docker ];then
# $serverPath/docker/initd/docker stop
# fi
if [ -f /usr/lib/systemd/system/docker.service ];then
systemctl stop docker
systemctl disable docker
rm -rf /usr/lib/systemd/system/docker.service
systemctl daemon-reload
fi
$CMD remove -y docker docker-ce-cli containerd.io
# docker-client \