> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ale.run/llms.txt
> Use this file to discover all available pages before exploring further.

# Container Image

<video autoPlay muted loop playsInline className="w-full aspect-video" src="https://storage.googleapis.com/files.cloudtype.io/ale-docs/developers/images/en/container_en.mp4" />

> On the dashboard, click <Icon icon="circle-plus" iconType="solid" size={15} color="2396F1" /> or `⌘ + K` to open the deployment modal, then Select the **Container Template.**

<Tip>
  You can deploy custom images from a private image registry. See the [Connect Registry page](/en/developers/registry).
</Tip>

## Configuration and Deployment

<Frame>
  <img className="block rounded-md" src="https://files.cloudtype.io/ale-docs/developers/images/en/09_01.png" />
</Frame>

> After selecting the Container template, enter the necessary settings and deploy.

<AccordionGroup>
  <Accordion title="Container Image Address and Tag">
    <Frame>
      <img className="block rounded-md" src="https://files.cloudtype.io/ale-docs/developers/images/en/09_02.png" />
    </Frame>

    > Enter the image address and tag along with `:`.
  </Accordion>

  <Accordion title="Port Number, Environment Variables, Start Command">
    > Enter the settings for image deployment.
  </Accordion>

  <Accordion title="More Options">
    <Frame>
      <img className="block rounded-md" src="https://files.cloudtype.io/ale-docs/developers/images/en/09_03.png" />
    </Frame>

    * **uid**: User ID for executing processes within the container (default: 1000)

    * **gid**: Group ID for process ownership within the container (default: 1000)

    * **Update strategy**

      * **Rolling Update**: Deploy new version incrementally while maintaining service availability. Requires sufficient node resources
      * **Recreate**: Stop all instances before deploying new version. Results in downtime

    * **Shell**: Specify the shell for container runtime execution (sh, bash, zsh, etc.)
  </Accordion>

  <Accordion title="Resource Settings and Deploy">
    <Frame>
      <img className="block rounded-md" src="https://files.cloudtype.io/ale-docs/developers/images/en/08_04.png" />
    </Frame>

    * **Resource Type**: Select between [On-demand or Spot instance types](/en/developers/resource#on-demand-spot)

    * **CPU**: Maximum vCPU resource for the service. Minimum vCPU means 0.1 vCPU

    * **Memory**: Maximum memory size your service can use

    * [Replica](/en/developers/replica): Number of service replicas for high availability and load balancing

    * **Deploy**: Click `Deploy`

    <Tip>
      If deployment fails due to resource limitations, see the [Space and Resource Management page](/en/operations/spaces#allocate-resources) to add resources to your space.
    </Tip>
  </Accordion>
</AccordionGroup>
