Skip to content

Instantly share code, notes, and snippets.

@geerlingguy
Last active August 12, 2020 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geerlingguy/ce883ad4aec6a5f1187ef93bd338511e to your computer and use it in GitHub Desktop.
Save geerlingguy/ce883ad4aec6a5f1187ef93bd338511e to your computer and use it in GitHub Desktop.
Upgrade Docker CE version in Travis CI environments
#!/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