DOCKER on REDHAT 8 | CENTOS 8 | AMAZON LINUX | latest 2020 | ROOT | NORMAL USER
Hi,friends in this video i have shown how to install docker on redhat 8/centos 8 by dnf commands.Hope you got benefit from the video,any doubts please comment in the section.This video is for educational purpose only and took some reference.
sudo dnf config-manager –add-repo=https://download.docker.com/linux/centos/docker-ce.repo
sudo dnf repolist -v
sudo dnf list docker-ce
sudo dnf install docker-ce –nobest -y
sudo systemctl start docker
sudo systemctl enable docker
docker –version
If you want to run docker as non-root user then you need to add it to the docker group.
Create the docker group if it does not exist
$ sudo groupadd docker
Add your user to the docker group.
$ sudo usermod -aG docker $USER
Run the following command or Logout and login again and run (that doesn’t work you may need to reboot your machine first)
$ newgrp docker
Check if docker can be run without root
$ docker run hello-world
reference:-https://www.linuxtechi.com/install-docker-ce-centos-8-rhel-8/
https://stackoverflow.com
#Docker #daemon #kubernetes #it
#technology #devops #automation #cse
#conatiner #containerization #install #docker
centos 8