Skip to content

fix: add localhost prefix to image names to prevent Docker registry auto-prefixing#574

Open
yoavkatz wants to merge 1 commit into
kagenti:mainfrom
yoavkatz:feature/exgentic-mcp-server
Open

fix: add localhost prefix to image names to prevent Docker registry auto-prefixing#574
yoavkatz wants to merge 1 commit into
kagenti:mainfrom
yoavkatz:feature/exgentic-mcp-server

Conversation

@yoavkatz

Copy link
Copy Markdown
Contributor

Problem

Docker automatically adds docker.io/library/ prefix to unqualified image names, which causes:

  • Inconsistencies between Docker and Podman image naming
  • Breaks docker inspect commands when using short image names
  • Different behavior between the two container runtimes

Solution

Added localhost/ prefix to image names in build scripts. This:

  • Prevents Docker from auto-adding the docker.io/library/ prefix
  • Keeps images local (not pushed to any registry)
  • Ensures consistent naming across both Docker and Podman
  • Makes docker inspect and podman inspect work with the same image names

Changes

  • a2a/exgentic_agent/build.sh: Add localhost/ prefix to image names
  • mcp/exgentic_benchmarks/build.sh: Add localhost/ prefix to image names

Testing

After this change:

  • Images will be tagged as localhost/exgentic-a2a-AGENT:TAG and localhost/exgentic-mcp-BENCHMARK:TAG
  • docker inspect localhost/exgentic-mcp-tau2:latest will work correctly
  • Both Docker and Podman will reference images consistently

Commit

Signed-off-by: Yoav Katz katz@il.ibm.com

…uto-prefixing

Docker automatically adds 'docker.io/library/' prefix to unqualified image names,
which causes inconsistencies between Docker and Podman, and breaks image inspection
commands. Adding 'localhost/' prefix prevents this behavior while keeping images
local and ensuring consistent naming across both container runtimes.

Changes:
- a2a/exgentic_agent/build.sh: Add localhost/ prefix to image names
- mcp/exgentic_benchmarks/build.sh: Add localhost/ prefix to image names

This ensures 'docker inspect' and 'podman inspect' work consistently with the
same image names across both tools.

Signed-off-by: Yoav Katz <katz@il.ibm.com>

@evaline-ju evaline-ju left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor suggestion would be to also provide this added localhost/ prefix for the exgentic agent and benchmark README commands

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

Labels

None yet

Projects

Status: New/ToDo

Development

Successfully merging this pull request may close these issues.

3 participants