This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Get the IP address of the container, optionally for a specific Docker network.
dockerIP(network?: string): string | undefined;
|network||Name of a Docker network. If |
string | undefined
The IP addresses that are returned by this function are valid only on the associated Docker network, which is often only associated with a single host node for most Docker network types.