Fix docker dns modification
Enhance step purge
This commit is contained in:
@@ -13,7 +13,7 @@ dockerGpgKeyUrl="https://download.docker.com/linux/ubuntu/gpg"
|
||||
dockerRepoUrl="https://download.docker.com/linux/ubuntu"
|
||||
dockerPackages="docker-ce docker-ce-cli containerd.io"
|
||||
# Entry in config value $dockerDefaultConf
|
||||
dockerDnsEntry="DOCKER_OPTS=\"--dns $dockerDns1 --dns $dockerDns2\""
|
||||
dockerDnsEntry=
|
||||
|
||||
# Get script working directory
|
||||
# (when called from a different directory)
|
||||
@@ -32,6 +32,7 @@ step_config() {
|
||||
echoerr " [W] User configuration \"$CONFIG_FILE\" not found. Using \"$CONFIG_FILE_DEFAULT\""
|
||||
. "$CONFIG_FILE_DEFAULT"
|
||||
fi
|
||||
dockerDnsEntry="DOCKER_OPTS=\"--dns $dockerDns1 --dns $dockerDns2\""
|
||||
}
|
||||
|
||||
step_1_info() { echo "Install Docker dependencies"; }
|
||||
@@ -162,7 +163,8 @@ step_102_alias() { ALIAS="purge"; }
|
||||
step_102() {
|
||||
exe read -p "Are you sure y/[n]? " answer
|
||||
case $answer in
|
||||
yY)
|
||||
[yY])
|
||||
exe service docker stop
|
||||
exe rm -rf /var/lib/docker
|
||||
;;
|
||||
*)
|
||||
|
Reference in New Issue
Block a user