更新 docker-tools 至 1.2.1 版本
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
# 参数配置
|
||||
## 版本号
|
||||
VERSION=1.2.0
|
||||
VERSION=1.2.1
|
||||
## 当前的日期、日期时间
|
||||
DATE=`date +%Y%m%d`
|
||||
DATETIME=`date +%Y%m%d`_`date +%H%M%S`
|
||||
@@ -355,8 +355,8 @@ stopDocker () {
|
||||
|
||||
## 重启 Docker
|
||||
restartDocker () {
|
||||
stop
|
||||
start
|
||||
stopDocker
|
||||
startDocker
|
||||
}
|
||||
|
||||
## 设置 Docker 自启动
|
||||
@@ -464,6 +464,9 @@ onlyUpdateDockerCompose () {
|
||||
onlyEnableDockerSwarm () {
|
||||
echo '------------------------------ 开始启用 Docker Swarm... ------------------------------'
|
||||
|
||||
sed -i 's#"live-restore": true#"live-restore": false#g' /etc/docker/daemon.json
|
||||
restartDocker
|
||||
|
||||
if [ $DOCKER_SWARM_ROLE == "manager" ]; then
|
||||
docker swarm init --advertise-addr $DOCKER_SWARM_MANAGER_IP
|
||||
fi
|
||||
|
||||
BIN
releases/docker-tools_v1.2.1.zip
Normal file
BIN
releases/docker-tools_v1.2.1.zip
Normal file
Binary file not shown.
Reference in New Issue
Block a user