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

FlagDescriptionDefault
--toolTool name to set limits for
--memoryMemory limit (e.g., 512m, 1g, 2.5g)
--cpuCPU 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, max 128).