CCE provides an optimal operating environment for containers and enables you to build complex containerized applications.
This section uses the Guestbook application as an example to describe how to create a containerized application from a component template.
Guestbook is an application that allows visitors of a website to leave public comments. To leave a public comment, type the comment in the input box of Guestbook and click Submit. Then, your comment is displayed.
As shown in Figure 2, the Guestbook application consists of three components and each component runs in a separate container:
This component stores code logic.
The two components work in master/slave mode to store user messages.
Figure 3 shows how to create a containerized application on the CCE console.
The general procedure for creating a containerized application is as follows:
Use component templates to create common components shared by different applications.