vendor: github.com/docker/docker v23.0.6
full diff: - https://github.com/docker/docker/compare/v23.0.1...v23.0.6 - https://github.com/docker/cli/compare/v23.0.1...v23.0.6 Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
+2
-2
@@ -164,8 +164,8 @@ func (cli *DockerCli) ContentTrustEnabled() bool {
|
||||
|
||||
// BuildKitEnabled returns buildkit is enabled or not.
|
||||
func (cli *DockerCli) BuildKitEnabled() (bool, error) {
|
||||
// use DOCKER_BUILDKIT env var value if set
|
||||
if v, ok := os.LookupEnv("DOCKER_BUILDKIT"); ok {
|
||||
// use DOCKER_BUILDKIT env var value if set and not empty
|
||||
if v := os.Getenv("DOCKER_BUILDKIT"); v != "" {
|
||||
enabled, err := strconv.ParseBool(v)
|
||||
if err != nil {
|
||||
return false, errors.Wrap(err, "DOCKER_BUILDKIT environment variable expects boolean value")
|
||||
|
||||
Reference in New Issue
Block a user