Skip to content

fix(docker-auth): pass --global to registry:login#4

Merged
guess merged 1 commit into
mainfrom
fix/docker-auth-global-flag
Apr 28, 2026
Merged

fix(docker-auth): pass --global to registry:login#4
guess merged 1 commit into
mainfrom
fix/docker-auth-global-flag

Conversation

@guess

@guess guess commented Apr 28, 2026

Copy link
Copy Markdown
Owner

Summary

  • dokku registry:login without --global works but emits a deprecation warning, and the positional-arg disambiguation between app-scoped and host-scoped login is implicit. The docker_auth block's stated intent is host docker daemon login, so make the scope explicit.
  • Mask regex extended to skip an optional --global between registry:login and the three positionals; the no-flag form still masks correctly.
  • Reference doc updated to show --global on both the login and logout command examples.

Test plan

  • bun test — 229 pass
  • Verified on a live Dokku host that registry:login --global silences the warning seen with the previous form

Without --global, dokku registry:login emits a deprecation warning and
its positional-arg disambiguation between app-scoped and host-scoped
login is implicit. The docker_auth feature's stated intent is host
docker daemon login, so make the scope explicit.

Updates the dry-run mask regex to skip an optional --global between
registry:login and the three positionals (server/username/password),
preserving back-compat for the no-flag form. Reference docs updated to
show --global on both the login and logout examples.
@guess
guess merged commit 8375d56 into main Apr 28, 2026
1 check passed
@guess
guess deleted the fix/docker-auth-global-flag branch April 28, 2026 20:41
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.

1 participant