Actions42
- Container Actions
- Image Actions
- Network Actions
- System Actions
- Volume Actions
Network → Disconnect
AI-generatedSummary
Disconnect a container from a Docker network, optionally forcing the disconnect.
Inputs
- networkId (required) — Network name or ID
- networkContainerId (required) — Container to attach or detach
- networkDisconnectForce — Whether to force the container disconnect from the network
Output shape
no body — success/failure only
Returns a 204 No Content on success; errors are propagated as n8n execution failures.
Examples
Example 1: Detach a container from a network
networkId: bridge, networkContainerId: cd17c922acd6, networkDisconnectForce: false
Example 2: Force detach a container from a network
networkId: 3c1f18dd9f11, networkContainerId: n8n, networkDisconnectForce: true