Skip to content

Docker (buildx and credential helpers)

Installs Docker CLI extensions: buildx (extended BuildKit builds with completions) and docker-credential-helpers (platform keystore credential storage) from GitHub releases.

Terminal window
zi for \
as'completions' \
atclone'buildx* completion zsh > _buildx' \
from"gh-r" \
sbin'!buildx-* -> buildx' \
@docker/buildx \
Terminal window
zi for \
from"gh-r" \
sbin'!* -> docker-credential-desktop' \
@docker/docker-credential-helpers
  • from'gh-r' — downloads the release binary from GitHub Releases.
  • as'completions' — marks this as a completions-only plugin.
  • atclone'buildx* completion zsh > _buildx' — generates the _buildx Zsh completion file after download.
  • sbin'!buildx-* -> buildx' — creates a shim named buildx pointing to the versioned binary (requires zinit-annex-bin-gem-node). The ! flag marks it as a lazy shim.
  • from'gh-r' — downloads the release binary from GitHub Releases.
  • sbin'!* -> docker-credential-desktop' — creates a shim named docker-credential-desktop for the downloaded binary.

Both recipes require the zdharma-continuum/zinit-annex-bin-gem-node annex to be loaded first.

Terminal window
# prerequisite — load once at the top of .zshrc
zinit light-mode for zdharma-continuum/zinit-annex-bin-gem-node
# buildx
zi for \
as'completions' \
atclone'buildx* completion zsh > _buildx' \
from"gh-r" \
sbin'!buildx-* -> buildx' \
@docker/buildx \
# credential helpers
zi for \
from"gh-r" \
sbin'!* -> docker-credential-desktop' \
@docker/docker-credential-helpers