ping method
Checks that the daemon answers (GET /_ping).
Implementation
Future<void> ping() async {
final response = await _send('GET', '/_ping');
final body = (await utf8.decodeStream(response)).trim();
if (body != 'OK') {
throw DockerUnavailableException(
'The daemon at $endpoint answered "$body" to a ping, not "OK"',
);
}
}