isSshDockerHost function

bool isSshDockerHost()

Returns true when the Docker host is reached via SSH.

This affects port normalisation in PublishedPortModel.normalize: loopback addresses are replaced with the remote hostname so that tests running on the local machine can reach ports inside containers on the remote host.

Implementation

bool isSshDockerHost() => dockerHostHostname() != null;