Skip to content

Use v2 registries.conf format#14240

Open
balajimandava-eaton wants to merge 1 commit into
actions:mainfrom
etn-ccis:ci/EMBDO-1226_Ubuntu24_upgrade_config_issue
Open

Use v2 registries.conf format#14240
balajimandava-eaton wants to merge 1 commit into
actions:mainfrom
etn-ccis:ci/EMBDO-1226_Ubuntu24_upgrade_config_issue

Conversation

@balajimandava-eaton

@balajimandava-eaton balajimandava-eaton commented Jun 16, 2026

Copy link
Copy Markdown

Replace legacy [registries.search] schema with the v2 key unqualified-search-registries when writing /etc/containers/registries.conf. This makes the file compatible with skopeo >= 1.8 (which rejects the old v1 schema) and preserves docker.io and quay.io as search registries.

Description

New tool, Bug fixing, or Improvement?
Please include a summary of the change and which issue is fixed. Also include relevant motivation and context.
For new tools, please provide total size and installation time.

Related issue:

Check list

  • Related issue / work item is attached
  • Tests are written (if applicable)
  • Documentation is updated (if applicable)
  • Changes are tested and related VM images are successfully generated

Replace legacy [registries.search] schema with the v2 key unqualified-search-registries when writing /etc/containers/registries.conf. This makes the file compatible with skopeo >= 1.8 (which rejects the old v1 schema) and preserves docker.io and quay.io as search registries.
Copilot AI review requested due to automatic review settings June 16, 2026 09:18

Copilot AI 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.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates Ubuntu image build script to write a containers registries configuration compatible with newer container tooling (notably skopeo).

Changes:

  • Replace legacy v1 registries.conf schema with v2 unqualified-search-registries format.
  • Add inline documentation and an upstream reference explaining the change.

printf "[registries.search]\nregistries = ['docker.io', 'quay.io']\n" | tee /etc/containers/registries.conf
# Write registries.conf in v2 format; skopeo >= 1.8 rejects the legacy v1 schema
# (see https://github.com/containers/image/blob/main/docs/containers-registries.conf.5.md)
printf 'unqualified-search-registries = ["docker.io", "quay.io"]\n' | tee /etc/containers/registries.conf

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Run echo *** | skopeo login -u username --password-stdin ghcr.io
echo *** | skopeo login -u username --password-stdin ghcr.io
shell: bash --noprofile --norc -e -o pipefail {0}
env:
COVERITY_INSTALL_DIR: /opt/coverity
WORKSPACE: /__w/edge-linux-github-builds/edge-linux-github-builds
time="2026-06-11T12:02:58Z" level=fatal msg="get credentials: loading registries configuration "/etc/containers/registries.conf": registries.conf must be in v2 format but is in v1"
Error: Process completed with exit code 1. - due to this issue made the changes.

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.

2 participants