Docker icon

Docker

Manage Docker containers, images, networks, volumes, and daemon metadata with Unix socket, TCP, TLS, or SSH connections

Network → Disconnect

AI-generated

Summary

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

Links

Discussion