Skip to content

docker: Match version format with ce-packaging - #529

Merged
vvoland merged 2 commits into
docker:mainfrom
vvoland:docker-vprefix
Oct 8, 2026
Merged

vvoland merged 2 commits into
docker:mainfrom
vvoland:docker-vprefix

Conversation

@vvoland

@vvoland vvoland commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

Use short Git commit in docker CLI and engine version output

docker version showed the full 40-character commit for binaries built here. Packages from docker-ce-packaging, and the engine deb and rpm packages here, show the 7-character short hash.

pkg: Drop the v prefix from static CLI and Engine versions

Static docker-cli and docker-engine archives still reported versions like v29.9.0-rc.2 in docker version.

The earlier change that dropped the prefix covered the deb, rpm, and combined docker builds, but missed these two static build scripts.

Strip the prefix from GENVER_VERSION before passing it to the CLI and Engine builds, as the other builds already do.

`docker version` showed the full 40-character commit for binaries
built here. Packages from docker-ce-packaging, and the engine deb and
rpm packages here, show the 7-character short hash.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
Static docker-cli and docker-engine archives still reported versions
like v29.9.0-rc.2 in `docker version`.

The earlier change that dropped the prefix covered the deb, rpm, and
combined docker builds, but missed these two static build scripts.

Strip the prefix from GENVER_VERSION before passing it to the CLI and
Engine builds, as the other builds already do.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>

@thaJeztah thaJeztah left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@vvoland
vvoland merged commit b3b9e1e into docker:main Oct 8, 2026
379 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants