Created
April 5, 2018 21:26
-
-
Save poeli/a9124c5682515d77aa76fcf1ab32fa43 to your computer and use it in GitHub Desktop.
Install and Use Docker on CentOS 7
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 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