Skip to content

Instantly share code, notes, and snippets.

@dylanscott
Last active March 12, 2024 08:36
Show Gist options
  • Save dylanscott/ea6cff4900c50f4e85a58c01477e9473 to your computer and use it in GitHub Desktop.
Save dylanscott/ea6cff4900c50f4e85a58c01477e9473 to your computer and use it in GitHub Desktop.
Travis Update to Docker 1.13
#!/usr/bin/env bash
set -euo pipefail
sudo sh -c 'echo "deb https://apt.dockerproject.org/repo ubuntu-$(lsb_release -cs) main" > /etc/apt/sources.list.d/docker.list'
curl -fsSL https://apt.dockerproject.org/gpg | sudo apt-key add -
sudo apt-key fingerprint 58118E89F3A912897C070ADBF76221572C52609D
sudo apt-get update
sudo apt-get -y install "docker-engine=1.13.1-0~ubuntu-$(lsb_release -cs)"
@dylanscott
Copy link
Author

dylanscott commented Mar 1, 2017

Note: I still had to list docker under services in .travis.yml, otherwise I was running into issues running the docker cli without sudo.

Also note: This update takes around ~15s in my builds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment