• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to install Rancher on CentOS 7

{{postValue.id}}

Install Rancher on CentOS 7

Rancher is an open source software that helps you to run the containers in production. With rancher, you no need to build containers from scratch it supplies entire software stack needed to manage container. Rancher is based on Docker containers, which is why it can be run on a dedicated box, KVM machine or even on a LXC container. Moreover, it provides a huge library of applications which are installed within a few clicks and it also supports Docker images from Dockerhub. It is so simple to install Rancher on CentOS 7.


Prerequisites

Linux host must have a kernel version 3.10 and above should have at least 1GB memory.

Installing Rancher

First, make sure that execute the following command to launch the Rancher Server.

[root@linuxhelp ~]# docker run -d --restart=always -p 8080:8080 rancher/server
Unable to find image ' rancher/server:latest'  locally
latest: Pulling from rancher/server
bae382666908: Pull complete 
29ede3c02ff2: Pull complete 
da4e69f33106: Pull complete 
8d43e5f5d27f: Pull complete  
b0de1abb17d6: Pull complete 
422f47db4517: Pull complete 
79d37de643ce: Pull complete 
69d13e08a4fe: Pull complete 
2ddfd3c6a2b7: Pull complete 
bc433fed3823: Pull complete 
b82e188df556: Pull complete 
dae2802428a4: Pull complete 
a6247572ea3c: Pull complete 
884c916ebae4: Pull complete 
85517c9c5365: Pull complete 
02dded9fe690: Pull complete 
fd9f433c3bc6: Pull complete 
44d91b3fea45: Pull complete 
0d463387dfeb: Pull complete 
60753c4d26f0: Pull complete 
a003892966fe: Pull complete 
Digest: sha256:42441f0128fae4d72d51f92de2049392427d462356282a46f28434332967c7e4
Status: Downloaded newer image for rancher/server:latest
41e93100d7f61f30efeedd9bb433f97a02d4e364166ed357f31c62b3a2349b9d

And then, you need to verify that Rancher Server container is running without any issue.

[root@linuxhelp ~]# docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                              NAMES
41e93100d7f6        rancher/server      " /usr/bin/entry /usr&hellip "    24 hours ago        Up 23 seconds       3306/tcp, 0.0.0.0:8080-> 8080/tcp   elated_lamport

Once it is done, you need to try and access the following URL.
URL

Add host

Now let' s try adding the Host. Since we are doing a single host Rancher installation, we will add the same host running the Rancher server as a host of Rancher UI. Choose Add Hosts from Infrastructure.
Rancher


For first time users, Rancher will prompt to select an IP address and it must be reachable to all hosts that you will be adding.
IP address

Just click Save.


In the next page. the list of cloud providers will be available. Since we will be adding the host that is running Rancher server, we will select the “ custom” option. Once you selected the custom option, Rancher will provide a command to use to add hosts.


Enter the public IP address of the host in the text box provided in the 4th step, now copy the whole command provided in the 5th step and run it on the Rancher host.

IP address


And then, click close on the Rancher UI. Wait for a while the host will be soon visible in Infrastructure &ndash > Hosts page.
Executed


Getting Started with First Container:

Now, n Host Page, click on Add + Add container Rancher will take you to Add container page where we will create our first container. You should name your container and add other details.
Container
centos

You will now see that creation of Ubuntu container is in progress. It will only take less than a minute.
Minute
ubuntu

You will experience that Rancher not only manages containers that are created by own it can also manage that are created with native Docker commands.

Tags:
jackson
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

Do you plan to implement upstream Kubernetes, or continue to work on your own fork?link

A

We’re still going to provide our distribution when you select the default option of having us create your Kubernetes cluster, but it will be very close to upstream.

Q

Does this release mean that we need to re-train our support staff in Kubernetes?

A

Yes. Rancher will offer the native Kubernetes functionality via kubectl but will also offer our own UI dashboard to allow you to deploy Kubernetes workload without having to understand the full complexity of Kubernetes.

Q

Can I still create templates for environments and clusters?

A

No. Starting with 2.0, the concept of an environment has now been changed to a Kubernetes cluster as going forward, only the Kubernetes orchestration engine is supported.

Q

Can you still add an existing host to an environment? (i.e. not provisioned directly from Rancher?

A

Yes. We still provide you with the same way of executing our Rancher agents directly on hosts.

Q

How would the migration from v1.x to v2.0 work?link

A

Due to the technical difficulty in transforming a Docker container into a pod running Kubernetes, upgrading will require users to “replay” those workloads from v1.x into new v2.0 environments.

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Jayce ?
What are the types of table used in IPtables

What are the various types of table used in IPtables and how to use that for my server security?

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.