Actions42
- Container Actions
- Image Actions
- Network Actions
- System Actions
- Volume Actions
Container → Update
AI-generatedSummary
Update a Docker container's configuration and restart policy.
Inputs
- containerId (required) — Container name or full/short container ID
- updateRestartPolicyName — Restart policy to apply (e.g., Always, No, On Failure, Unless Stopped)
- updateRestartPolicyMaximumRetryCount — Maximum number of restart retries when policy is On Failure
- updateResourceLimits — Collection of resource limit settings to apply to the container
- updateAdvancedJson — Arbitrary JSON to merge and override the structured update payload
Output shape
a single updated container object
Returns the updated container details; unchanged fields remain as before; errors are propagated as n8n errors.
Examples
Example 1: Configure a container to use an On Failure restart policy with retries and adjust CPU limits
containerId: cd17c922acd6, updateRestartPolicyName: on-failure, updateRestartPolicyMaximumRetryCount: 3, updateResourceLimits: {"cpuShares": 512}