CanineHQ/canine · error · RuntimeError
Docker build failed: #{e.message}
Error message
Docker build failed: #{e.message} What it means
Error "Docker build failed: #{e.message}" thrown in CanineHQ/canine.
Source
Thrown at app/services/builders/frontends/dockerfile_builder.rb:21
def initialize(build)
@build = build
@project = build.project
end
def build_with_dockerfile(repository_path)
metadata_file = File.join(repository_path, "buildx-metadata.json")
docker_build_command = construct_buildx_command(repository_path, metadata_file: metadata_file)
# Create a new instance of RunAndLog with the build object as the loggable and killable
runner = Cli::RunAndLog.new(build, killable: build)
# Call the runner with the command (joined as a string since RunAndLog expects a string)
runner.call(docker_build_command)
parse_digest_from_metadata(metadata_file)
rescue Cli::CommandFailedError => e
raise "Docker build failed: #{e.message}"
end
def construct_buildx_command(repository_path, metadata_file: nil)
docker_build_command = [
"docker",
"--context=default",
"buildx",
"build",
"--progress=plain",
"--platform", "linux/amd64",
"-t", project.container_image_reference,
"-f", File.join(repository_path, project.build_configuration.dockerfile_path)
]
# Add automatic build arguments
Builders::Base.automatic_build_args(build).each do |name, value|
docker_build_command.push("--build-arg", "#{name}=#{value}")
endView on GitHub (pinned to ba4ee3968d)
When it happens
Trigger: Thrown at app/services/builders/frontends/dockerfile_builder.rb:21 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of CanineHQ/canine@ba4ee3968d (2026-08-23).
Data as JSON: /api/errors/1dca2d28871c8884.
Report an issue: GitHub.