# How to Manage template?

Templates are used to launch images as containers and define the required container disk size, volume, volume paths, and ports needed. You can also define environment variables and startup commands within the template.

#### Built-in Templates

These templates are created and maintained by FPT AI Factory. We now offer 6 built-in templates:

1. **Jupyter Notebook**

* Intended Use: This template provides Jupyter Notebook to adopt remote development for AI/Data Scientists without local hardware limitations.
* Environment Variables

Some more useful environment variables are provided for container customization.

| Variable | Type   | Default | Description                                                                      |
| -------- | ------ | ------- | -------------------------------------------------------------------------------- |
| USERNAME | string | admin   | Username to access Jupyter Notebook                                              |
| PASSWORD | string |         | <ul><li>Password to access Jupyter Notebook</li><li>Generate by system</li></ul> |

* Port

| Type | Port |
| ---- | ---- |
| HTTP | 8000 |
| TCP  | 22   |

2. **Ollama WebUI**

* Intended Use: This template supports running various large language model (LLM) programs, including Ollama and APIs compatible with OpenAI, making it easy for users to customize based on workflow.
* Port:

| Type | Port |
| ---- | ---- |
| HTTP | 8080 |
| TCP  | 22   |

3. **Ollama**

* Intended Use: This template enables high-throughput inference using GPU resources with a state-of-the-art engine.
* Environment Variables

Some more useful environment variables are provided for container customization.

| Variable   | Type   | Default | Description                                                                           |
| ---------- | ------ | ------- | ------------------------------------------------------------------------------------- |
| API\_TOKEN | string |         | <ul><li>Auto-authenticate with external services</li><li>Generate by system</li></ul> |

* Port:

| HTTP | 8000 |
| ---- | ---- |

4. **vLLM**

* Intended Use: This vLLM container image is built and maintained by AI Factory. This template enables high-throughput model inference using GPU resources with a state-of-the-art engine.
* Environment Variables

Some more useful environment variables are provided for container customization.

| Variable                  | Type   | Default | Description                         |
| ------------------------- | ------ | ------- | ----------------------------------- |
| HUGGING\_FACE\_HUB\_TOKEN | string |         | Your Hugging Face User Access Token |

* Port:

| Type | Port |
| ---- | ---- |
| HTTP | 8000 |

5. **Code Server**

* Intended Use: This template offers cloud-based VS Code with GPU to train, test, and debug AI models remotely with full IDE capabilities.
* Environment Variables

Some more useful environment variables are provided for container customization.

| **Variable**       | **Type** | **Default**           | **Description**                                   |
| ------------------ | -------- | --------------------- | ------------------------------------------------- |
| PUID               | int      | 0                     | UserID                                            |
| PGID               | int      | 0                     | GroupID                                           |
| TZ                 | string   | Etc/UTC               | Your timezone                                     |
| PROXY\_DOMAIN      | string   | code-server.my.domain | The domain will be proxied for subdomain proxying |
| DEFAULT\_WORKSPACE | string   | /                     | Default folder opened when accessing code-server  |
| PASSWORD           | string   |                       | Generate by system                                |

* Port:

| Type | Port |
| ---- | ---- |
| HTTP | 8443 |
| TCP  | 22   |

6. **Ubuntu**

| Type | Port |
| ---- | ---- |
| TCP  | 22   |

* Intended Use: This is a minimal Ubuntu CLI virtual machine with several useful additions to improve your user experience. While the root account is available as usual, we have created a normal system user for your convenience.
* Development tools pre-installed: SSH access.

#### Custom Templates

You can use your own **Docker image** by clicking **Custom Template** and overriding your own image:tag. If your image is from a private Docker repository, make sure to provide your **username and password** for authentication.

![](/files/56d5b599762defa8153d675b24c336667f95857a)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ai-docs.fptcloud.com/fpt-gpu-cloud/gpu-container/tutorials/how-to-manage-template.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
