Skip to content

Instantly share code, notes, and snippets.

@AliMD
Last active October 24, 2023 07:30
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save AliMD/cfa12d314071739982b0cffadb4ab7f2 to your computer and use it in GitHub Desktop.
Save AliMD/cfa12d314071739982b0cffadb4ab7f2 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
@AliMD
Copy link
Author

AliMD commented Sep 11, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment