Skip to content

Fix truncated DOCKER_ACCOUNT variable in Circle CI example#25253

Merged
dvdksn merged 1 commit into
docker:mainfrom
dvdksn:fix-issue-25214
Jun 4, 2026
Merged

Fix truncated DOCKER_ACCOUNT variable in Circle CI example#25253
dvdksn merged 1 commit into
docker:mainfrom
dvdksn:fix-issue-25214

Conversation

@dvdksn

@dvdksn dvdksn commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Description

The Circle CI example in the Build Cloud CI docs used a truncated $DOCKER_ variable in the docker login command in both the build_push and build_cache jobs. As written, $DOCKER_ expands to an empty string, so the login fails. This changes both occurrences to $DOCKER_ACCOUNT, matching the very next line in each job (${DOCKER_ACCOUNT}) and every other CI example in the file.

Related issues

Closes #25214

🤖 Generated with Claude Code

The Circle CI build_push and build_cache jobs in the Build Cloud CI
docs used a truncated $DOCKER_ variable in the docker login command,
which expands to empty and breaks authentication. Use $DOCKER_ACCOUNT
to match the rest of the file.

Fixes docker#25214

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dvdksn dvdksn requested a review from craig-osterhout as a code owner June 3, 2026 13:34
@netlify

netlify Bot commented Jun 3, 2026

Copy link
Copy Markdown

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit ab7a59b
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/6a202d67e3ef5d0008fa0c51
😎 Deploy Preview https://deploy-preview-25253--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@dvdksn dvdksn requested a review from a team June 3, 2026 13:35

@docker-agent docker-agent left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Assessment: 🟢 APPROVE

The fix correctly replaces both instances of the truncated $DOCKER_ variable with $DOCKER_ACCOUNT in the Circle CI example, making the docker login command functional in both the build_push and build_cache jobs. The change is minimal, accurate, and consistent with the surrounding code.

@@ -201,7 +201,7 @@ jobs:
curl --silent -L --output ~/.docker/cli-plugins/docker-buildx $BUILDX_URL
chmod a+x ~/.docker/cli-plugins/docker-buildx

- run: echo "$DOCKER_ACCESS_TOKEN" | docker login --username $DOCKER_ --password-stdin
- run: echo "$DOCKER_ACCESS_TOKEN" | docker login --username $DOCKER_ACCOUNT --password-stdin

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.

not new, but we should probably add quotes as well

@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

@dvdksn dvdksn merged commit 8c47944 into docker:main Jun 4, 2026
19 checks passed
@dvdksn dvdksn deleted the fix-issue-25214 branch June 4, 2026 05:00
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.

[docs-scanner] Incomplete variable in Circle CI login command

4 participants