Skip to content

Instantly share code, notes, and snippets.

@ChrisMcKee
Created June 23, 2020 10:55
Show Gist options
  • Save ChrisMcKee/ed0056a622b6d19a9541a18df255adf6 to your computer and use it in GitHub Desktop.
Save ChrisMcKee/ed0056a622b6d19a9541a18df255adf6 to your computer and use it in GitHub Desktop.
Upgrade docker to a specific version
#!/bin/bash
docker_version=19.03.11
pkg_version=$(apt-cache madison docker-ce | grep ${docker_version} | head -n 1 | cut -d ' ' -f 4)
apt-get install -y -q docker-ce=${pkg_version} docker-ce-cli=${pkg_version}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment