network_disconnect
Disconnect a container from a network while keeping the container running. Required before removing a network that has connected containers.
Instructions
Disconnect a container from a network.
The container keeps running with its other network attachments; only this endpoint is removed
(the reverse of network_connect). A network with connected containers cannot be deleted, so
disconnect them before network_remove.
args: id_or_name - The network id or name container - The container id or name to disconnect force - Force the disconnect; use to clear a stale endpoint (e.g. from a deleted container) returns: bool - True after the container is disconnected
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| container | Yes | ||
| id_or_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |