Master every aspect of orchestrating/managing Docker including creating a Swarm, creating services, using mounts, scheduling, scaling, resource management, rolling updates, load balancing, high availability, logging and monitoring, using multiple zo
shell脚本
#!/bin/sh
# 当前目录
CURRENT_DIR=$(
cd $(dirname $0)
pwd
)
#Install docker
if which docker >/dev/null; then
echo 检测到 Docker 已安装,跳过安装步骤
docker -v
echo 启动 Docker
service docker start 2>&1 | tee -a ${CURRENT_DIR}/install.log
else
if [