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.
Currently, my server has the following specifications:
- Docker CE on RHEL 7.6. GitHub Gist: instantly share code, notes, and snippets.
- 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
Installing Docker CE on CentOS 7 is pretty easy and straight-forward. First, I always update my system.
Install Docker On Rhel 7.6 Linux
Now, setting up the repository
Install Docker On Rhel 7.6 Free
Now, install Docker with the yum install command
Once the installation completes, run the Docker service and set to automatically start during system boot.
At this point, Docker is up and running. It’s time to run a hello-world container.
If everything work well, it will return something like this:
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.
- This build can only access files in the home directory. So Dockerfiles and all other files used in commands like
docker loadneed to be in $HOME.
- You can change the configuration of this build by modifying the files in
- Additional certificates used by the Docker daemon to authenticate with registries need to be added in
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
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
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.