Skip to content

Instantly share code, notes, and snippets.

@sancelisso
Forked from AliMD/install-doceker.md
Created December 29, 2020 15:18
Show Gist options
  • Save sancelisso/68d62cde0d57cfa4b95e47ec0b4381b9 to your computer and use it in GitHub Desktop.
Save sancelisso/68d62cde0d57cfa4b95e47ec0b4381b9 to your computer and use it in GitHub Desktop.
Install docker on linux as easy as possible

Install Docker on linux

Any distribution of architecture as easy as possible.

# Install docker latest version from original website
curl -fsSL https://get.docker.com/ | sh

# Adding your user to the "docker" group
sudo usermod -aG docker $(whoami)
## you will have to log out and back in for this to take effect!

# Start the docker daemon at boot
sudo chkconfig docker on
# or
sudo systemctl enable docker

# Check everything is okay
docker info
docker run hello-world

# If you have error in connect to docker daemon
## Restart Docker deamon
sudo service docker restart
## Or reboot! :D
sudo reboot

Install Docker Compose

Go to the Compose repository release page on GitHub and find latest version.

curl -L https://github.com/docker/compose/releases/download/1.10.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment