Bird
0
0

Which environment variable enables BuildKit when running a Docker build?

easy📝 Conceptual Q2 of 15
Docker - Image Optimization
Which environment variable enables BuildKit when running a Docker build?
ADOCKER_BUILD_MODE=kit
BBUILD_KIT_ENABLED=true
CDOCKER_BUILDKIT=1
DENABLE_BUILDKIT=yes
Step-by-Step Solution
Solution:
  1. Step 1: Recall the correct environment variable

    The official variable to enable BuildKit is DOCKER_BUILDKIT=1.
  2. Step 2: Verify other options

    Other options are not recognized by Docker and will not enable BuildKit.
  3. Final Answer:

    DOCKER_BUILDKIT=1 -> Option C
  4. Quick Check:

    Enable BuildKit = DOCKER_BUILDKIT=1 [OK]
Quick Trick: Use DOCKER_BUILDKIT=1 to turn on BuildKit [OK]
Common Mistakes:
  • Using incorrect variable names
  • Setting values other than '1'
  • Confusing BuildKit with other Docker features

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes