We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9436c6c commit 70d3d9aCopy full SHA for 70d3d9a
1 file changed
src/buildx/builder.ts
@@ -56,10 +56,19 @@ export class Builder {
56
}
57
58
public async inspect(name: string): Promise<BuilderInfo> {
59
+ // always enable debug for inspect command, so we can display additional
60
+ // fields such as features: https://github.com/docker/buildx/pull/1854
61
+ const envs = Object.assign({}, process.env, {
62
+ DEBUG: '1'
63
+ }) as {
64
+ [key: string]: string;
65
+ };
66
+
67
const cmd = await this.buildx.getCommand(['inspect', name]);
68
return await Exec.getExecOutput(cmd.command, cmd.args, {
69
ignoreReturnCode: true,
- silent: true
70
+ silent: true,
71
+ env: envs
72
}).then(res => {
73
if (res.stderr.length > 0 && res.exitCode != 0) {
74
throw new Error(res.stderr.trim());
0 commit comments