lift limit
View and set container resource limits (memory and CPU) for running tools.
lift limit
View current resource limits for all containers, or set memory/CPU limits for a specific tool.
Usage
lift limit [flags]
Options
| Flag | Description | Default |
|---|---|---|
--tool | Tool name to set limits for | — |
--memory | Memory limit (e.g., 512m, 1g, 2.5g) | — |
--cpu | CPU limit (e.g., 0.5, 1, 2) | — |
Example
# View all container limits
$ lift limit
CONTAINER MEMORY LIMIT CPU LIMIT
strapi-app-1 1.0 GB 1.00
strapi-db-1 512 MB 0.50
n8n-app-1 512 MB 0.50
# Set limits for a tool
$ lift limit --tool strapi --memory 2g --cpu 2
Updated strapi containers: memory=2g, cpus=2
# Set only memory
$ lift limit --tool n8n --memory 1g
Updated n8n containers: memory=1g
Notes
- Limits are applied immediately via
docker update(no restart required). - Limits persist across container restarts.
- Memory format:
256m,512m,1g,2.5g(case-insensitive). - CPU format: decimal number (e.g.,
0.5= half a core,2= two cores, max128).
Related
- lift capacity - Check available server resources
- lift scale - Scale replicas