Skip to content

Instantly share code, notes, and snippets.

@rossigee
Last active March 14, 2020 04:14
Show Gist options
  • Save rossigee/3df8daa53fd4672c95c3079c228626aa to your computer and use it in GitHub Desktop.
Save rossigee/3df8daa53fd4672c95c3079c228626aa to your computer and use it in GitHub Desktop.
A quick curlable to deploy docker engine and docker-compose.
#!/bin/bash
export LC_ALL=C
export DEBIAN_FRONTEND=noninteractive
# Install Docker engine
echo "Installing docker engine..."
apt -q install --assume-yes \
apt-transport-https \
ca-certificates \
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
apt -q install --assume-yes docker-ce
# Install docker-compose
curl -L "https://github.com/docker/compose/releases/download/1.23.1/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