Skip to content

Instantly share code, notes, and snippets.

@shariqh
shariqh / docker-install.sh
Last active April 30, 2022 00:39
Linux (Ubuntu) Docker/Docker-Compose Install Script
#!/bin/sh
echo "Starting docker community edition install..."
echo "Removing any old instances of docker and installing dependencies"
apt remove -y docker docker-engine docker.io containerd runc
apt update
apt install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common
echo "Dowloading latest docker and adding official GPG key"
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -