Skip to content

Instantly share code, notes, and snippets.

@samerbahri98
Forked from LinuxlinkedBD/saleor_ecommerce.sh
Last active October 7, 2021 01:14
Show Gist options
  • Save samerbahri98/ff2ecc7c39cf49fd79f455e43ac543d7 to your computer and use it in GitHub Desktop.
Save samerbahri98/ff2ecc7c39cf49fd79f455e43ac543d7 to your computer and use it in GitHub Desktop.
How to install docker and git on Linux Server
#!/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