Created
June 16, 2022 07:56
-
-
Save michaelact/bfaa090647d37410c1af610d48b8c3fd to your computer and use it in GitHub Desktop.
Install Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install Docker | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg; | |
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null; | |
apt-get update; | |
apt-get -y install docker-ce docker-ce-cli containerd.io; | |
# Install Docker Compose | |
curl -L "https://github.com/docker/compose/releases/download/v2.2.3/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