Sha256: f9741f87045c5123d58afb9d33d231bed115e7292c6ca522319add5e2db3b531
Contents?: true
Size: 749 Bytes
Versions: 40
Compression:
Stored size: 749 Bytes
Contents
# frozen_string_literal: true # tau docker check daemon module DockerCheckDaemon # Backend method for docker check daemon. # @return [Boolean] is the docker daemon running? # rubocop:disable Metrics/MethodLength def docker_check_daemon return true if @docker_daemon_running return false unless command_available_else_error? config.active['cmd_docker'] log.debug 'Check if the docker daemon is running' status = try config.active['cmd_docker_check_daemon_docker_info'] unless status.exitstatus.zero? log.error 'The docker daemon is not running' return false end log.debug 'The docker daemon is running' @docker_daemon_running = true true end # rubocop:enable Metrics/MethodLength end
Version data entries
40 entries across 40 versions & 1 rubygems