diff --git a/install.sh b/install.sh index 3219205..8c96ddb 100755 --- a/install.sh +++ b/install.sh @@ -101,6 +101,11 @@ fi DEFAULT_REPO_FILE="docker-ce.repo" if [ -z "$REPO_FILE" ]; then REPO_FILE="$DEFAULT_REPO_FILE" + # Automatically default to a staging repo fora + # a staging download url (download-stage.docker.com) + case "$DOWNLOAD_URL" in + *-stage*) REPO_FILE="docker-ce-staging.repo";; + esac fi mirror=''