From d80c80e799b132a8a2ca5e1cb96efbbb6716a499 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Thu, 24 Mar 2022 13:20:33 +0800 Subject: [PATCH] Update docker-installer.sh --- scripts/docker-installer.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/scripts/docker-installer.sh b/scripts/docker-installer.sh index a6d7cee3..e43bdca8 100644 --- a/scripts/docker-installer.sh +++ b/scripts/docker-installer.sh @@ -154,11 +154,8 @@ save_images(){ sudo git clone https://github.com/Websoft9/docker-$repo_name.git /tmp/docker-$repo_name || sudo git clone https://github.com.cnpmjs.org/Websoft9/docker-$repo_name.git /tmp/docker-$repo_name sudo docker rmi `docker images -aq` -f &>/dev/null || true -# Rename compose and env file name cd /tmp/docker-$repo_name - #sudo rm -rf docker-compose.yml .env - #sudo mv $compose_file_name docker-compose.yml 1>/dev/null 2>&1 - #sudo mv .env_all .env 1>/dev/null 2>&1 + # Pull images and save images sudo systemctl start docker @@ -175,9 +172,6 @@ installation(){ # Rename compose and env file name cd $install_dir - #sudo rm -rf docker-compose.yml .env - #sudo mv $compose_file_name docker-compose.yml 1>/dev/null 2>&1 - #sudo mv .env_all .env 1>/dev/null 2>&1 # Stop the container and remove the Volumes for sec_installation cd $install_dir