Skip to content

Instantly share code, notes, and snippets.

@hoangdh
Last active June 16, 2021 10:21
Show Gist options
  • Save hoangdh/83a8994e4f3db2385d66a922aa4ebf23 to your computer and use it in GitHub Desktop.
Save hoangdh/83a8994e4f3db2385d66a922aa4ebf23 to your computer and use it in GitHub Desktop.
Install Docker on Ubuntu 18.04
#!/bin/bash
apt-get update -y
apt-get install -y apt-transport-https ca-certificates curl software-properties-common
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"
apt-get update -y
apt-get install docker-ce -y
curl -L "https://github.com/docker/compose/releases/download/1.29.2/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