docker network check

This commit is contained in:
qiaofeng1227 2023-06-27 16:51:11 +08:00
parent 1a11fdf031
commit ccf5995332

View file

@ -160,6 +160,11 @@ then
elif command -v yum > /dev/null;then
sudo yum update -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
fi
sudo systemctl start docker
sudo systemctl enable docker
if ! docker network inspect websoft9 > /dev/null 2>&1; then
sudo docker network create websoft9
fi
return
else
echo "Docker is not installed, start to install..."