Install Docker On Rhel 7.6

CentOS 7.6 is a great operating system for Desktop and Server. But for me, it has better performance and more suitable for server use. I am currently building my personal home server using the latest version of CentOS 7.6. It is working pretty well now. Today, I want to add more functionality to my server by installing Docker.

To install docker on rhel 7/6 you need container selinux version minimum 2.10. So install container selinux greater tha 2.10. Verify container selinux version in your server with below command. How to install Docker on Red Hat Enterprise Linux 7? Are you sure you want to request a translation? We appreciate your interest in having Red Hat content localized to your language. Please note that excessive use of this feature could cause delays in getting specific content you.

Docker Community Edition (CE) version 18.0.9 is now available for download. In this article, I am going to show you how I build my Docker virtualization host using CentOS 7.

Hardware Configuration:

Currently, my server has the following specifications:

  1. Docker CE on RHEL 7.6. GitHub Gist: instantly share code, notes, and snippets.
  2. Jan 24, 2019 CentOS 7.6 is a great operating system for Desktop and Server. But for me, it has better performance and more suitable for server use. I am currently building my personal home server using the latest version of CentOS 7.6. It is working pretty well now. Today, I want to add more functionality to my server by installing Docker.
  • CPU: 4 cores AMD CPU
  • Memory: 8 GB
  • Hard Disk: 150 GB
  • 1 Gigabit LAN connection

In my case, this specification is good enough for a small personal server. I also have Oracle Database 18c XE installed on this system.

Install Docker CE on CentOS 7.6

Install Docker On Rhel 7.6

Installing Docker CE on CentOS 7 is pretty easy and straight-forward. First, I always update my system.

Install docker on rhel 7.6

Install Docker On Rhel 7.6 Linux

Now, setting up the repository

Install Docker On Rhel 7.6 Free

Install Docker On Rhel 7.6

Now, install Docker with the yum install command

Once the installation completes, run the Docker service and set to automatically start during system boot.

Install

At this point, Docker is up and running. It’s time to run a hello-world container.

7.6

If everything work well, it will return something like this:

Closing Word

With Docker installed on my CentOS system, I want to run several database systems such as PostgreSQL, MySQL and Microsoft SQL Server on top of it. And also maybe building my own docker images in the future. Thanks for reading this post. I hope you enjoy it and see you next time.

Build and run container images with Docker.

Usage

  • This build can only access files in the home directory. So Dockerfiles and all other files used in commands like docker build, docker save and docker load need to be in $HOME.
  • You can change the configuration of this build by modifying the files in /var/snap/docker/current/.
  • Additional certificates used by the Docker daemon to authenticate with registries need to be added in /var/snap/docker/current/etc/docker/certs.d (instead of /etc/docker/certs.d).

Running Docker as normal user

By default, Docker is only accessible with root privileges (sudo). If you want to use docker as a regular user, you need to add your user to the docker group.

Warning: if you add your user to the docker group, it will have similar power as the root user. For details on how this impacts security in your system, see https://docs.docker.com/engine/security/#docker-daemon-attack-surface

Authors

This snap is built by Canonical based on source code published by Docker, Inc. It is not endorsed or published by Docker, Inc.

Docker and the Docker logo are trademarks or registered trademarks of Docker, Inc. in the United States and/or other countries. Docker, Inc. and other parties may also have trademark rights in other terms used herein.