Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A quick curlable to deploy docker engine and docker-compose.
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 \
curl -fsSL | sudo apt-key add -
add-apt-repository \
"deb [arch=amd64] \
$(lsb_release -cs) \
stable" && \
apt-get update
apt -q install --assume-yes docker-ce
# Install docker-compose
curl -L "$(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