-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please provide different download link for different version #1053
Comments
Things get even worse, as without download and install the file, we have no idea which version of the binary it is. Currently docker version is |
Thanks for the request. I'll speak to the people responsible for the download URLs and get back to you. |
@twang2218 what's the download script that you're maintaining to fetch Docker for Mac installers? Note that app autoupdates after install (by default), so I'd love to learn more about why you're interested in installing an old version of Docker for Mac. |
@friism Here is the script I used to create a local copy of Docker software: https://coding.net/u/twang2218/p/docker-downloader/git/blob/master/run.sh It's always GFW problem, because of it, we often have trouble download software directly from GitHub and AWS, especially those HTTPS links. Sometimes it interferes with the response, sometimes it contaminates the DNS, or sends fake finished signal, or drop the packets, etc. That's the reason most autoupdate features often fail in China, including the Docker for Mac's autoupdate feature. It's not only Docker for Mac's problem, such as, To overcome the problem, I created a script to download those Docker software from official website manually, and verify it by the checksum predefined in the script. So, any integrity issuse happened in the between, it can detect it, so we can decide to try it again, or download from another channel. Becasue of the issue, I try to maintain the version and checksum of those links. And provide a local copy for the Docker software as well, and also let others to use the script to create their own local copy of the Docker softwares. And the script will raise false alarm if the same link has been replaced with another version. As the problem we have here, most time we think it's the GFW again, so we just try it again and again or find another channel to try it. Some even report to me that the package I provided has been modified as it's not as same as the one they downloaded themselves from the same link. It may take some times to realise that's just a new version, not integrity issue at all. And without download and install it, we have no idea what exactly the version is. So, after the script download it, it's hard to assign a correct version name to it. Without the version in the name, others who check on the local copy pages for update will not realize there is a new version, not the old one they downloaded already. Previously, I manually download and extract the .dmg file and check the version number, and manually changed the filename to reflect the version of it. But because it's the same link, I did waste a lot of time to check the version of same package again and again. And currently, I wrote a script to use some trickies to help me understand of the package version, but it is a little bit hacky. That's the story, I do want to keep the latest version of Docker software, but have the version in the link, or even better, to use GitHub release feature in this repo, will help me to keep update the script and my local copy to the latest version. And also help others who use the copy have better understanding of the integrity status of the local copy. |
@twang2218 alright, thanks for that extra detail. One thing that you could do is use the appcast urls. While not exactly "public", they are stable. It's how we publish auto-updates: https://download.docker.com/mac/stable/appcast.xml That has link to current version. At the time of writing, it's Does that work? |
@friism Great! That's exactly what I need. I think it solved my issue, I will look into it. Thank you very much! 😸 |
Verified, it works perfectly. Thanks a lot. |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Currently, the only download link for Docker for Mac is https://download.docker.com/mac/stable/Docker.dmg, which is handy if we just want to download the latest version of the file to install.
However, if we have some problem when automatic this a little bit. The same link but different version of binary alway confuse the download script. Thing get even worse if we apply the checksum for the validation, which always raise warning, if the link silently replaced the file with another one.
Could you provide a permanent link for each version of the binary? Such as,
And to keep the backward compatibility, we can
ln
thestable
to the latest stable version.So we can manually update the link and checksum in the download script, and make sure everyone are on the same page.
The text was updated successfully, but these errors were encountered: