Skip to content

Instantly share code, notes, and snippets.

@almokhtarbr
Created September 13, 2019 13:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save almokhtarbr/3304a8d0f8706babc868bd75fd60b712 to your computer and use it in GitHub Desktop.
Save almokhtarbr/3304a8d0f8706babc868bd75fd60b712 to your computer and use it in GitHub Desktop.
$ sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
$ sudo yum install docker-ce
$ sudo systemctl start docker
$ sudo docker run hello-world
# First of all it is required to configure Docker daemon to start automatically at system boot.
sudo systemctl enable docker
#And secondly, add your user to the docker group to get rid of the need of typing sudo each time you run the docker command:
sudo usermod -aG docker $USER
docker run hello-world
source : https://www.shellhacks.com/install-docker-centos-7/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment