Skip to content

Instantly share code, notes, and snippets.

@guitarrapc
Created April 13, 2023 08:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guitarrapc/e30d54445d8bf5b9daaafbc6eb61989c to your computer and use it in GitHub Desktop.
Save guitarrapc/e30d54445d8bf5b9daaafbc6eb61989c to your computer and use it in GitHub Desktop.
curl retry. docker gpg server is unstable these days.... 2023
# connect-timeout: 1s = connect timeout. if network connect is stopped frequentry, 1s will be strong option.
# max-time: 10s = must finish within this time
# retry: 5 = retry count
# retry-delay: 0 = no exponential backoff
# retry max time: 60 = retry no longer than
curl --connect-timeout 1 --max-time 10 --retry 5 --retry-delay 0 --retry-max-time 60 -fsSL https://download.docker.com/linux/ubuntu/gpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment