How to install Docker on RedHat/Oracle Linux
Faris Durrani

Faris Durrani @farisdurrani

About: Software Engineer at Mythics, LLC

Location:
Atlanta, GA
Joined:
Nov 4, 2021

How to install Docker on RedHat/Oracle Linux

Publish Date: May 6
0 0

To install docker on the Fedora/Centos/RedHat/Oracle Linux OS and to grant it sudo privileges, follow these instructions:

# install docker
sudo dnf -y install dnf-plugins-core
sudo dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
sudo dnf install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo systemctl enable docker.service

# make docker sudo
sudo groupadd docker
sudo usermod -aG docker $USER
sudo systemctl restart docker
Enter fullscreen mode Exit fullscreen mode

Making docker part of the sudo group allows you to use docker commands like docker ps without needing to add sudo at the beginning.


Safe harbor statement

The information provided on this channel/article/story is solely intended for informational purposes and cannot be used as a part of any contractual agreement. The content does not guarantee the delivery of any material, code, or functionality, and should not be the sole basis for making purchasing decisions. The postings on this site are my own and do not necessarily reflect the views or work of Oracle or Mythics, LLC.

This work is licensed under a Creative Commons Attribution 4.0 International License.

Comments 0 total

    Add comment