Skip to content

dsdk / v1.47 / networkConnect

Function: networkConnect() ​

networkConnect(opts): Promise<NetworkConnectResponse>

Connect a container to a network

The network must be either a local-scoped network or a swarm-scoped network with the attachable option set. A network cannot be re-attached to a running container

Parameters ​

ParameterType

opts

ExtendedOptions<NetworkConnectData>

Returns ​

Promise<NetworkConnectResponse>