Skip to content

Instantly share code, notes, and snippets.

@normanrz
Last active February 17, 2020 10:34
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 normanrz/3fde8a6fde47bdf569694e1ef6f7bdf8 to your computer and use it in GitHub Desktop.
Save normanrz/3fde8a6fde47bdf569694e1ef6f7bdf8 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list
apt-get update
apt-get install -y docker-ce docker-ce-cli containerd.io
curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment