Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tab-completion for docker build is partially broken #5517

Open
thaJeztah opened this issue Oct 8, 2024 · 0 comments
Open

Tab-completion for docker build is partially broken #5517

thaJeztah opened this issue Oct 8, 2024 · 0 comments

Comments

@thaJeztah
Copy link
Member

Description

When trying tab-completion for docker build, it looks like it's trying to complete subcommands (this should probably complete to file-paths / directory names);

docker build<TAB>
build    builder  buildx

Trying to provide completion for a flag that has completion set locally does complete, but does not use buildx's completion;

docker build --platform<TAB>
linux           linux/amd64     linux/arm/v5    linux/arm/v7    linux/arm64/v8  linux/riscv64   wasip1          windows
linux/386       linux/arm       linux/arm/v6    linux/arm64     linux/ppc64le   linux/s390x     wasip1/wasm     windows/amd64

Completion for docker buildx build uses local files (which would be expected for the build-context), and forcing it to complete options (--<tab>) works;

docker buildx build --<TAB>
--add-host         (Add a custom host-to-IP mapping (format: "host:ip"))
--allow            (Allow extra privileged entitlement (e.g., "network.host", "security.insecure"))
--annotation       (Add annotation to the image)
--attest           (Attestation parameters (format: "type=sbom,generator=image"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant