• Cloud Container Engine

  1. Help Center
  2. Cloud Container Engine
  3. User Guide
  4. FAQs
  5. What Is an Environmental Variable?

What Is an Environmental Variable?

An environment variable refers to a container runtime variable. A maximum of 30 environment variables can be defined in a component template. The variables of a containerized application can be modified even after the application is deployed. This gives greater flexibility in containerized application management.

There are two ways to define an environment variable:

  • Specify the Environment Variables parameter on the CCE console
  • Specify the ENV parameter in the Dockerfile