Skip to content

Instantly share code, notes, and snippets.

@vsilverman
Created June 21, 2020 23:54
Show Gist options
  • Save vsilverman/d4bbd53e7b43a29a266e3059e88ec023 to your computer and use it in GitHub Desktop.
Save vsilverman/d4bbd53e7b43a29a266e3059e88ec023 to your computer and use it in GitHub Desktop.
Install Docker CLI
#!/bin/bash
# Script to install docker cli
# on Debian/Ubuntu OS Platforms
apt-get update && \
apt-get -y install apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common && \
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg > /tmp/dkey; apt-key add /tmp/dkey && \
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \
$(lsb_release -cs) \
stable" && \
apt-get update && \
apt-get -y install docker-ce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment