checkDaemon method

Future<void> checkDaemon()

Checks if Docker daemon is accessible.

Implementation

Future<void> checkDaemon() async {
  await ensureInitialized();

  if (!(await isDaemonRunning())) {
    throw StateError('Docker Daemon not running. DockerHost: $dockerHost');
  }

  _lastDaemonCheck = DateTime.now();
}