Last active
August 12, 2020 19:41
-
-
Save geerlingguy/ce883ad4aec6a5f1187ef93bd338511e to your computer and use it in GitHub Desktop.
Upgrade Docker CE version in Travis CI environments
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
#!/bin/bash | |
# | |
# See: https://docs.travis-ci.com/user/docker/#installing-a-newer-docker-version | |
# | |
# Add the following in your .travis.yml file to upgrade Docker prior to your build: | |
# | |
# before_install: | |
# - curl https://gist.githubusercontent.com/geerlingguy/ce883ad4aec6a5f1187ef93bd338511e/raw/36612d28981d92863f839c5aefe5b7dd7193d6c6/travis-ci-docker-upgrade.sh | sudo bash | |
# | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
sudo apt-get update | |
sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment