candidateSockets static method
The sockets looked at when DOCKER_HOST is not set, in order.
Implementation
static List<String> candidateSockets(Map<String, String> environment) {
final home = environment['HOME'] ?? environment['USERPROFILE'];
final runtime = environment['XDG_RUNTIME_DIR'];
return [
'/var/run/docker.sock',
if (home != null && home.isNotEmpty) ...[
'$home/.docker/run/docker.sock',
'$home/.colima/default/docker.sock',
'$home/.rd/docker.sock',
],
if (runtime != null && runtime.isNotEmpty) '$runtime/docker.sock',
];
}