In the previous article, we described how to use our own local Springboot project as a Docker image and upload the image to the container image service. Now let’s look at how to deploy the image to our own Rancher
1. Specify the mirror library
If your services in the container mirror center are private, you need to configure the corresponding mirror information in Rancher’s “Infrastructure” >” Mirror Libraries “first
2. New applications
Rancher is based on applications. One application can store multiple services of one type, which is convenient for management. Therefore, we need to create a new application to manage services
3. New services
The service here can understand as one of our need to mirror maven project, sample, we just simple configuration about the name of the service, mirror address, port, etc., more other configuration was able to see the official document, it is worth noting that the mirror address, a mirror image of each cloud vendors address may be slightly different, such as netease cloud, Mirror address format is: public address: mirror version: registry.cn-beijing.aliyuncs.com/somta/somta_pub:register-eureka-server-1.0.0
4. Check the service deployment status
Click the service just deployed, we can check the deployment of the service, and it is very convenient to edit, delete, clone, view logs and other operations on the interface of the container and service, which conveniently helps us to manage our container and service, as shown in the figure below