Skip to content

Instantly share code, notes, and snippets.

@poeli
Created April 5, 2018 21:26
Show Gist options
  • Save poeli/a9124c5682515d77aa76fcf1ab32fa43 to your computer and use it in GitHub Desktop.
Save poeli/a9124c5682515d77aa76fcf1ab32fa43 to your computer and use it in GitHub Desktop.
Install and Use Docker on CentOS 7
# Install and Docker on CentOS 7
# Reference:
# https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-centos-7
sudo yum check-update
# It will add the official Docker repository, download the latest version of Docker, and install it:
curl -fsSL https://get.docker.com/ | sh
# start the Docker daemon
sudo systemctl start docker
#Verify that it's running:
#sudo systemctl status docker
#make sure it starts as daemond:
sudo systemctl enable docker
# Executing Docker Command Without Sudo (Optional). Re-login is required to make the setting effect.
sudo usermod -aG docker $(whoami)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment