Created
January 7, 2021 19:08
-
-
Save cdugeai/3521de6d5ca2c9b9f59375c3da5b83dc to your computer and use it in GitHub Desktop.
My installation of docker and docker-compose
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
# Install Docker | |
## Remove docker | |
sudo apt-get remove docker docker-engine docker.io containerd runc | |
## Install docker with convenience script | |
curl -fsSL https://get.docker.com -o get-docker.sh | |
sudo sh get-docker.sh | |
## Create a user group called "docker" | |
sudo groupadd docker | |
## Add the curent user to the group "docker" | |
sudo usermod -aG docker $USER | |
# Install docker-compose | |
## Download the script | |
sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
## Change permissions to run the downloaded script | |
sudo chmod +x /usr/local/bin/docker-compose | |
# Then please logout and log in | |
# So that the group creation and adding will apply correctly | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment