Difference between revisions of "Installing Docker on RedHat Enterprise Linux 7"

From Lingoport Wiki
Jump to: navigation, search
(Created page with "On the system (most likely a virtual machine) dedicated to Command Center, make sure you have the latest version of docker up and running. The following steps may help. A use...")
 
(Verify that Docker Engine is installed correctly)
Line 53: Line 53:
 
This command will run a test container and display a message indicating that the installation is working properly.
 
This command will run a test container and display a message indicating that the installation is working properly.
   
Return to the [[Command Center Installation|Installation page|]] to continue installing Command Center on the system
+
Return to the [[Command Center Installation|Installation page]] to continue installing Command Center on the system

Revision as of 00:20, 23 April 2023

On the system (most likely a virtual machine) dedicated to Command Center, make sure you have the latest version of docker up and running. The following steps may help.

A user with sudo privileges is required to run most commands.

Uninstall old docker versions

This is an optional step in case your docker version is out of date:

   sudo yum remove docker \
                 docker-client \
                 docker-client-latest \
                 docker-common \
                 docker-latest \
                 docker-latest-logrotate \
                 docker-logrotate \
                 docker-engine

Install docker using the repository

   sudo yum update
   sudo yum install -y yum-utils
   sudo yum-config-manager \
     --add-repo \
     https://download.docker.com/linux/centos/docker-ce.repo
  sudo vi /etc/yum.repos.d/docker-ce.repo

At top of the file:

  [centos-extras]
  name=Centos extras - $basearch
  baseurl=http://mirror.centos.org/centos/7/extras/x86_64
  enabled=1
  gpgcheck=1
  gpgkey=http://centos.org/keys/RPM-GPG-KEY-CentOS-7
  
  sudo yum install slirp4netns fuse-overlayfs container-selinux
  sudo yum install docker-ce docker-ce-cli containerd.io docker-compose-plugin

Start Docker.

Start docker using the following command:

   $ sudo systemctl start docker

Enable the Docker service to start automatically on system boot by running the following command:

   $ sudo systemctl enable docker

Verify that Docker Engine is installed correctly

Run the hello-world image.

   $ sudo docker run hello-world

This command will run a test container and display a message indicating that the installation is working properly.

Return to the Installation page to continue installing Command Center on the system