-
-
Save samerbahri98/ff2ecc7c39cf49fd79f455e43ac543d7 to your computer and use it in GitHub Desktop.
How to install docker and git on Linux Server
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 | |
sudo apt-get update | |
sudo apt update | |
sudo apt-get install software-properties-common | |
sudo apt update | |
sudo add-apt-repository ppa:git-core/ppa | |
sudo apt update | |
sudo apt -y install git | |
sudo apt update | |
sudo apt upgrade -y | |
sudo apt update && sudo apt-get upgrade -y --fix-missing && sudo apt -y install build-essential checkinstall && sudo apt -y install ubuntu-restricted-extras && sudo apt -y install software-properties-common | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" | |
sudo apt update | |
apt-cache policy docker-ce | |
sudo apt -y install docker-ce | |
sudo systemctl status docker | |
docker-compose --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment