All Products
Document Center

Create an application by using an image

Last Updated: Feb 12, 2018

You can create an application by using an image in the Container Service console.


  1. Log on to the Container Service console.

  2. Click Applications in the left-side navigation pane.

  3. Click Create Application in the upper-right corner.


  4. Complete the basic information for the application you are about to create:


    • Name: Enter the name of the application. It can be 1–64 characters long and contain numbers, English letters, and hyphens (-), but cannot start with a hyphen (-).
    • Version: Enter the version of the application. By default, 1.0 is entered.
    • Cluster: Select the cluster on which the application will be deployed.
    • Update: The update method of the application. Select Standard Release or Blue-Green Release. For more information, see Overview of release polices.
    • Description: Enter the information of the application. This field is optional. The entered description cannot exceed 1024 characters and will be displayed on the Application List page.
    • Pull Docker Image: With this check box selected, Container Service pulls the latest Docker image from the repository to deploy the application, even when the image tag does not change.
      To improve efficiency, Container Service caches the image. When deploying an application, Container Service uses the cached image instead of pulling the image from the repository if the image tag is the same as that of the local cache. Therefore, if you modify your codes and image but do not modify the image tag for the convenience of upper business, Container Service will use the old image cached locally to deploy the application. With this check box selected, Container Service ignores the cached image and re-pulls the image from the repository when deploying the application to make sure the latest image and codes are always used.
  5. Click Create with Image.

  6. Complete the following configurations as per your needs:

    1. Set the Image Name.
      You can directly enter the image name of the target hub in the format of domainname/namespace/imagename:tag.

    2. Set the Mode.
      Select Replicated or Global. With Replicated selected, provide the expected number of tasks and this number will be always maintained. With Global selected, the system starts a task on each node.

    3. Set the startup command (Command and Entry Point) of the container.
      If configured, the image configurations will be overwritten.

    4. Set the rules for the Update and Restart fields.

    5. Set the Constraint and Port Mapping.

    6. Set the container Data Volume.
      You can set the permission, type, and configurations of the data volume.

    7. Set the Resource Limit and Resource Reserve.

    8. Set the Networks.
      For more information about network, see Network overview.

    9. Set the Environment variables.

    10. Set the Service Label and Container Label.
      For more information about the labels supported by Container Service, see Label overview.

    11. Set the Secrets.
      For more information, see Secret overview.

    12. Set the container Auto Scaling rules.
      For more information, see Container auto scaling.

      Note: To use the auto scaling function, upgrade the cluster Agent to the latest version first. For how to upgrade the Agent, see Upgrade Agent.

  7. Click Create and Deploy after completing the settings.