Skip to content

cog run and cog predict should show a better error if built image does not exist #300

Closed

Description

@bfirsh

Sometimes docker build fails but doesn't return exit code 1. Cog should handle this more gracefully, and show a more helpful error than repository does not exist or may require 'docker login': denied: requested access to the resource is denied.

dribnet/pixray#16

Activity

  1. anish-sahoo commented on Jun 25, 2026

    @anish-sahoo
    Contributor

    Closing because ImageBuilder.Build now explicitly inspects the built image before attempting to run it, preventing the confusing registry error described here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions