Created
January 12, 2022 01:12
-
-
Save LuisEnMarroquin/69893cd6408c97400c8eb2bd01771833 to your computer and use it in GitHub Desktop.
Script to install Docker and docker-compose on Ubuntu 20 LTS
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
| # Install Docker with convenience script | |
| curl -fsSL https://get.docker.com -o get-docker.sh | |
| sudo sh get-docker.sh | |
| # Add your user to the Docker group | |
| sudo usermod -aG docker $USER | |
| # Refresh Docker group changes | |
| newgrp docker | |
| # Test that Docker is working | |
| docker run hello-world | |
| # Update packages | |
| sudo apt update -y | |
| sudo apt upgrade -y | |
| sudo apt autoremove -y | |
| # Install pip 3 | |
| apt install python3-pip -y | |
| pip3 --version | |
| # Install compose | |
| pip3 install docker-compose | |
| docker-compose --version | |
| # Reboot is recommended | |
| sudo reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment