Created
November 6, 2021 14:57
-
-
Save pfrayer/a7d52ccf5dc88420dd24b10afca2a2ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# With curl you'll have to parse the versions by yourself, and get fucked: | |
$ curl -s https://download.docker.com/linux/ubuntu/dists/bionic/stable/binary-amd64/Packages | grep -A2 -E "Package: docker-ce" | grep Version | awk -F 'Version:' '{print $2}' | sort -Vr | head -n 10 | |
18.06.3~ce~3-0~ubuntu | |
18.06.2~ce~3-0~ubuntu | |
18.06.1~ce~3-0~ubuntu | |
18.06.0~ce~3-0~ubuntu | |
18.03.1~ce~3-0~ubuntu | |
5:20.10.10~3-0~ubuntu-bionic | |
5:20.10.10~3-0~ubuntu-bionic | |
5:20.10.10~3-0~ubuntu-bionic | |
5:20.10.9~3-0~ubuntu-bionic | |
5:20.10.9~3-0~ubuntu-bionic | |
# Cleaner "debian" solution: | |
$ apt-cache show docker-ce | grep Version | head -n1 | |
Version: 5:20.10.10~3-0~ubuntu-focal | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment