Clusters
Templates
Templates in Tensor One are Docker container images paired with configuration details. They are essential for launching Clusters with predefined settings and environments.
What is a Template?
A Template defines the container image along with:
- Required container disk size
- Volume size and mount paths
- Port configurations
- Environment variables
Templates streamline the deployment of Clusters by pre-configuring critical infrastructure components.
Template Types
Tensor One supports various types of templates:
Managed by Tensor One (Official Templates)
- Curated and maintained by Tensor One
- Ideal for users who want reliable and ready-to-use setups
Custom Templates
- User-defined templates for tailored Cluster configurations
- Suitable for advanced users who require specific tools, commands, or system settings
Community Templates
- Shared by other Tensor One users
- A good starting point for learning and collaboration
Private Templates
- Created by you or your team (if on a team account)
- Shared internally
Creating and Customizing Templates
You can begin with an official or community template and use it directly, or customize it based on your needs.
For example, the default Docker command:
bash -c "/start.sh"
To run additional setup commands before launching the main script, modify the Docker command like this:
bash -c "apt update && apt install vim -y && /start.sh"
This enables installation of extra packages or execution of custom logic prior to launching the main process.
Customizing templates allows for powerful control over the startup behavior of Clusters and supports complex use cases across development, research, and deployment.