How Do I Upload Files to Docker Images?
Procedure
- Log in to the CCE console. In the navigation pane, choose Workloads > Deployments. On the page displayed, click Create Deployment.
- Configure basic information. The parameters marked with asterisks (*) are mandatory.
Table 1 Setting the basic information about the workload Parameter
Description
*Workload Name
Name of a workload, which must be unique.
*Cluster Name
Cluster to which the workload belongs.
*Namespace
In a single cluster, data in different namespaces is isolated from each other. In this way, workloads can share the resources of a cluster without affecting each other. If no namespace is set, the default namespace will be used.
*Instances
Number of pods in a workload. A workload can have one or more pods. The default value is 2. You can customize the value, for example, setting it to 1.
Each pod consists of containers with the same functions. You can configure multiple pods for a workload to ensure high reliability. For such a workload, if one pod is faulty, the workload can still run properly.
Time Zone Synchronization
If this parameter is enabled, the container and the node use the same time zone.
After the time zone synchronization function is enabled, disks of the HostPath type are automatically added to Local Disk of Data Storage. Do not modify or delete the disks.
Description
Description about the workload.
- Click Next to add a container.
Click
to select the image to be deployed. For example, select nginx from the open source image center. Retain the default parameter values. - On the page displayed, click Data Storage. In the scenario of Figure 1, enter the container path and host path, and then click OK.
- Click Next. Skip the advanced settings, and click Create.
After the workload is successfully created, the file in the local path can be uploaded to the container.

Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.