containerHost property

String get containerHost

The host the published ports of a container are reached on: 127.0.0.1 for a local socket (ports are published on the loopback interface only, so a test database is never open to the network), the daemon's own host for tcp://.

Implementation

String get containerHost => isUnix ? '127.0.0.1' : host!;