create-template
Create a RunPod template to define container configurations for GPU workloads, including Docker images, environment variables, ports, and storage settings.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
containerDiskInGb | No | Container disk size in GB | |
dockerEntrypoint | No | Docker entrypoint commands | |
dockerStartCmd | No | Docker start commands | |
env | No | Environment variables | |
imageName | Yes | Docker image to use | |
isServerless | No | Is this a serverless template | |
name | Yes | Name for the template | |
ports | No | Ports to expose | |
readme | No | README content in markdown format | |
volumeInGb | No | Volume size in GB | |
volumeMountPath | No | Path to mount the volume |
Input Schema (JSON Schema)
{
"properties": {
"containerDiskInGb": {
"description": "Container disk size in GB",
"type": "number"
},
"dockerEntrypoint": {
"description": "Docker entrypoint commands",
"items": {
"type": "string"
},
"type": "array"
},
"dockerStartCmd": {
"description": "Docker start commands",
"items": {
"type": "string"
},
"type": "array"
},
"env": {
"additionalProperties": {
"type": "string"
},
"description": "Environment variables",
"type": "object"
},
"imageName": {
"description": "Docker image to use",
"type": "string"
},
"isServerless": {
"description": "Is this a serverless template",
"type": "boolean"
},
"name": {
"description": "Name for the template",
"type": "string"
},
"ports": {
"description": "Ports to expose",
"items": {
"type": "string"
},
"type": "array"
},
"readme": {
"description": "README content in markdown format",
"type": "string"
},
"volumeInGb": {
"description": "Volume size in GB",
"type": "number"
},
"volumeMountPath": {
"description": "Path to mount the volume",
"type": "string"
}
},
"required": [
"name",
"imageName"
],
"type": "object"
}