imageExists method
Whether image is in the daemon's local store.
Implementation
Future<bool> imageExists(String image) async {
try {
await _drain(await _send('GET', '/images/$image/json'));
return true;
} on DockerException catch (e) {
if (e.statusCode == 404) {
return false;
}
rethrow;
}
}