GetBuildxLocation returns the path to the Docker buildx plugin.
()
| 170 | |
| 171 | // GetBuildxLocation returns the path to the Docker buildx plugin. |
| 172 | func GetBuildxLocation() (string, error) { |
| 173 | plugin, err := GetCLIPlugin("buildx") |
| 174 | if err != nil { |
| 175 | return "", err |
| 176 | } |
| 177 | return plugin.Path, nil |
| 178 | } |
| 179 | |
| 180 | // CheckDockerBuildxVersion checks that the Docker buildx plugin is installed |
| 181 | // and meets the minimum version requirement. |