“This is the 13th day of my participation in the November Gwen Challenge. See details: The Last Gwen Challenge 2021”.

When you get to know container choreography tools like Docker-compose, you may feel that they are relatively one-dimensional and not very interactive. In the real world, we need an easy-to-use, powerful container management platform, and Rancher can help you solve these problems.

The installation

docker run -d --restart=unless-stopped -p 8080:8080 rancher/server
Copy the code

Wait until the Rancher deployment is complete to access the Rancher service. Accessing port 8080 of the VM on local Windows:

Environment initialization

Create an environment < project >

Click Environment Management

Click Add Environment

Enter key information and click Create

Switch to the environment you just created

Adding an Image Library

Enter key information and click Create

Add the host

Follow the prompts

After the host is successfully added, the host information is displayed

As shown above, the two independent containers in red are containers that are not started in our environment

test

Create the Rancher application

Fill in the key information and click Create

Click Rancher-test to enter the application you just created

Click Add Service

Fill in the key information and click Create

Pay attention to Network information

Click OK to jump to the service page

We see that the container with SSH capability has been successfully created from Rancher’s page

View the SSHD process

Click the service name to enter and select execute command line

Enter ps -ef in the virtual terminal

Test SSH

Success!

Rancher also allows you to scale, upgrade, start, stop, clone, topology, view configurations, generate Docker-compose, connect to the virtual console, and so on. You can also connect to Mesos, Swarm, Kubernetes and other different types of container orchestration tools.