Skip to content

Fix Dockerfiles to use fully qualified image names for Podman compatibility#125

Merged
pdettori merged 1 commit intomainfrom
fix/dockerfile-fqdn-image-names
Feb 17, 2026
Merged

Fix Dockerfiles to use fully qualified image names for Podman compatibility#125
pdettori merged 1 commit intomainfrom
fix/dockerfile-fqdn-image-names

Conversation

@mrsabath
Copy link
Copy Markdown
Contributor

Summary

  • Use fully qualified image names (docker.io/library/...) in all Dockerfiles that previously used short names
  • Fixes Shipwright builds that use Buildah/Podman, which enforce fully qualified names in non-interactive environments

Problem

Shipwright builds fail with:

STEP 1/7: FROM golang:1.24.9-bookworm
Error: creating build container: short-name resolution enforced but cannot prompt without a TTY

Changes

File Before After
mcp/github_tool/Dockerfile golang:1.24.9-bookworm docker.io/library/golang:1.24.9-bookworm
mcp/weather_tool/Dockerfile python:3.12-slim-bookworm docker.io/library/python:3.12-slim-bookworm
mcp/shopping_tool/Dockerfile python:3.11-slim docker.io/library/python:3.11-slim
a2a/weather_service/Dockerfile python:3.12-slim-bookworm docker.io/library/python:3.12-slim-bookworm

All other Dockerfiles already use fully qualified names (e.g., ghcr.io/astral-sh/uv:...).

Fixes #123

Test plan

  • Verify Shipwright builds succeed for mcp/github_tool with Podman-based build strategy
  • Verify builds still work with Docker-based build strategy

… compatibility

Shipwright builds using Buildah/Podman fail when Dockerfiles use short
image names (e.g., `golang:...`) because Podman enforces fully qualified
names and cannot prompt for registry selection in non-interactive
environments like build pods.

Prefix all short FROM image references with `docker.io/library/` so
builds work with both Docker and Podman.

Fixes #123

Signed-off-by: Mariusz Sabath <mrsabath@gmail.com>
Copilot AI review requested due to automatic review settings February 17, 2026 01:08
@mrsabath mrsabath marked this pull request as draft February 17, 2026 01:08
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates Dockerfiles to use fully qualified image names (prefixed with docker.io/library/) instead of short names to fix Shipwright builds that use Buildah/Podman. These container runtimes enforce fully qualified names in non-interactive environments and fail when encountering short names like python:3.12-slim-bookworm.

Changes:

  • Update FROM statements in 4 Dockerfiles to use fully qualified image names with docker.io/library/ prefix
  • Remove trailing newline in mcp/shopping_tool/Dockerfile

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
mcp/weather_tool/Dockerfile Update FROM to use docker.io/library/python:3.12-slim-bookworm
mcp/shopping_tool/Dockerfile Update FROM to use docker.io/library/python:3.11-slim and remove trailing newline
mcp/github_tool/Dockerfile Update FROM to use docker.io/library/golang:1.24.9-bookworm
a2a/weather_service/Dockerfile Update FROM to use docker.io/library/python:3.12-slim-bookworm

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mrsabath mrsabath marked this pull request as ready for review February 17, 2026 12:54
@pdettori pdettori merged commit 018d9e5 into main Feb 17, 2026
8 checks passed
@pdettori pdettori deleted the fix/dockerfile-fqdn-image-names branch March 19, 2026 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shipwright builds fail with Podman: short-name resolution enforced

3 participants