def parse_config # rubocop:disable MethodLength
      # Test for file usability
      fail "Config file '#{@config_path}' not found"\
      unless @config_path.file?
      fail "Config file '#{@config_path}' not readable"\
      unless @config_path.readable?

      @ini_file = IniFile.load(@config_path)

      begin
        docker_image = @ini_file[:main]['docker_image']
        @docker_image = Docker::Image.get(docker_image)
        @logger.info(to_s) do
          "Docker image id=#{@docker_image.id[0..11]} name=#{docker_image}"
        end
      rescue NoMethodError
        raise 'No docker_image in section main in config found'
      rescue Docker::Error::NotFoundError
        raise "Docker_image '#{docker_image}' not found"
      rescue Excon::Errors::SocketError => e
        raise "Docker connection could not be established: #{e.message}"
      end
    end
def parse_config # rubocop:disable MethodLength
      # Test for file usability
      fail "Config file '#{@config_path}' not found"\
      unless @config_path.file?
      fail "Config file '#{@config_path}' not readable"\
      unless @config_path.readable?

      @ini_file = IniFile.load(@config_path)

      begin
        docker_image = @ini_file[:main]['docker_image']
        @docker_image = Docker::Image.get(docker_image)
        @logger.info(to_s) do
          "Docker image id=#{@docker_image.id[0..11]} name=#{docker_image}"
        end
      rescue NoMethodError
        raise 'No docker_image in section main in config found'
      rescue Docker::Error::NotFoundError
        raise "Docker_image '#{docker_image}' not found"
      rescue Excon::Errors::SocketError => e
        raise "Docker connection could not be established: #{e.message}"
      end
    end
Parse the config file for all pools