• Contact
  • Contact Us
  • Disclamer
  • Home 1
  • Home 2
  • Home 3
  • Privacy Policy
Saturday, May 10, 2025
How VPS - How to use/setup VPS
  • Login
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
How VPS - How to use/setup VPS
No Result
View All Result
Home Operating System CentOS

Install Rancher on CentOS 7

How VPS by How VPS
October 1, 2019
in CentOS
0
0
SHARES
14
VIEWS
Share on FacebookShare on Twitter

Contents

  1. Using a Different System?
  2. Introduction
  3. Requirements
  4. Install Docker
  5. Install Rancher
  6. Conclusion
  7. Want to contribute?

Using a Different System?

  • How To Install Rancher on Ubuntu 14.04

  • Install Rancher on Ubuntu 16.04

Are we missing a guide for your target system? Request one, or submit your own!


Introduction

Rancher is an open source platform for running containers and building a private container service. Rancher is based on Docker, so you can run it on a dedicated box, KVM machine or even on a LXC container. Rancher provides a huge library of applications which are installed within a few clicks and also supports docker images from Dockerhub.

Requirements

  • A Vultr instance with CentOS 7 x64.
  • At least 1GB memory.
  • A supported version of Docker.

Install Docker

As stated, Docker is required to run Rancher, so we will install it first.

First, remove any old Docker files, if necessary.

sudo yum remove docker docker-common docker-selinux docker-engine

Note: You may get a report that no Docker files are installed. This is safe to ignore.

Install required packages.

sudo yum install -y yum-utils device-mapper-persistent-data lvm2

Add a stable repo.

sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

Check the available versions of Docker CE.

yum list docker-ce --showduplicates | sort -r

You will see output similar to the following text.

...
docker-ce.x86_64            17.09.1.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.09.0.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.06.2.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.06.1.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.06.0.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.03.2.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.03.1.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.03.0.ce-1.el7.centos             docker-ce-stable
...

You can install the latest version of Docker CE simply using the sudo yum install docker-ce command, but in a production environment, it is recommended that you install a specific version rather than the latest version.

To specify the version of Docker CE to install, append the version-string, (second column), of the latest stable version to the package name followed by a “-“, as shown in the following command.

sudo yum install docker-ce-17.09.1.ce-1.el7.centos

Start Docker.

sudo systemctl start docker

Verify that Docker installed correctly.

sudo docker run hello-world

This command runs a test image in a test container to print a message, then exits. The message will be similar to the following output.

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
 https://cloud.docker.com/

For more examples and ideas, visit:
 https://docs.docker.com/engine/userguide/

Install Rancher

Now we’re are ready to install Rancher.

sudo docker run -d --restart=unless-stopped -p 8080:8080 rancher/server:stable

Wait a few minutes to allow the Rancher UI to boot. Then, open your favorite browser and go to port 8080 on your server.

http://192.0.2.0:8080

Be sure to replace 192.0.2.0 with your actual server’s IP address.

Rancher doesn’t configure access control by default, so it is important to set this up immediately, otherwise the UI and API can be accessed by anyone who has your IP.

Hover over the ADMIN tab, and click Access Control.

Follow the instructions in the Rancher UI to set up whichever form of access control you prefer.

Conclusion

Everything is now installed and you can begin to configure Rancher. For more in-depth information on configuring and using Rancher, visit their official documentation.

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article
Previous Post

On CoreOS, Setup Your Own Docker Registry

Next Post

How to Install TermRecord on CentOS 7

Next Post

How to Install TermRecord on CentOS 7

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

No Result
View All Result

Recent Post

Install Imagemagick on CentOS
CentOS

Install Imagemagick on CentOS

by How VPS
June 28, 2023
0

This is how I installed Imagemagick on a vanilla CentOS server Start off by installing the prerequisites yum install php-pear...

Read more
how to Check phpinfo

How to Check phpinfo of Hosting or VPS?

June 28, 2023
Failed to download metadata for repo 'appstream' on Centos 8

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

February 25, 2022
How to Fix MySQL Error "Plugin 'InnoDB' registration as a STORAGE ENGINE failed"?

How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”?

November 17, 2020
How to optimize Mysql or MariaDB

How to optimize Mysql or MariaDB

November 3, 2020

Recent News

  • Install Imagemagick on CentOS
  • How to Check phpinfo of Hosting or VPS?
  • How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

Category

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel
  • About
  • Advertise
  • Careers
  • Contact

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
Thabet