Skip to content

Commit c534ae4

Browse files
committed
docker: fix version output for multiple contexts
Signed-off-by: Abiola Ibrahim <git@abiosoft.com>
1 parent 60fce42 commit c534ae4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

environment/container/docker/docker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func (d dockerRuntime) Dependencies() []string {
131131
}
132132

133133
func (d dockerRuntime) Version(ctx context.Context) string {
134-
version, _ := d.host.RunOutput("docker", "version", "--format", `client: v{{.Client.Version}}{{printf "\n"}}server: v{{.Server.Version}}`)
134+
version, _ := d.host.RunOutput("docker", "--context", config.CurrentProfile().ID, "version", "--format", `client: v{{.Client.Version}}{{printf "\n"}}server: v{{.Server.Version}}`)
135135
return version
136136
}
137137

0 commit comments

Comments
 (0)