Created
September 3, 2023 09:04
-
-
Save 0xh7ml/1081839c3403bf7f2b908a76d9fa3432 to your computer and use it in GitHub Desktop.
install.sh
This file contains hidden or 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 | |
| echo "Installing Docker" | |
| sudo apt update | |
| sudo apt install apt-transport-https ca-certificates curl software-properties-common | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
| echo "deb [arch=amd64 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 | |
| sudo apt update | |
| sudo apt install docker-ce docker-ce-cli containerd.io | |
| sudo systemctl start docker | |
| sudo systemctl enable docker | |
| echo "Docker installed" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment