Docker - in CI/CDWhich Docker build command option is used to specify a cache source in a CI pipeline?A--rmB--build-argC--no-cacheD--cache-fromCheck Answer
Step-by-Step SolutionSolution:Step 1: Identify cache-related optionsDocker build supports options like --cache-from to specify images to use as cache sources.Step 2: Match option to cache source usage--cache-from tells Docker to use layers from the specified image as cache, which is essential in CI for caching.Final Answer:--cache-from -> Option DQuick Check:Cache source option = --cache-from [OK]Quick Trick: Use --cache-from to specify cache images in CI builds [OK]Common Mistakes:Using --no-cache disables cachingConfusing --build-arg with cachingThinking --rm affects caching
Master "in CI/CD" in Docker9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Docker Quizzes Docker Security - Secrets management - Quiz 2easy Docker Security - Read-only filesystem containers - Quiz 10hard Docker Security - Read-only filesystem containers - Quiz 4medium Docker in CI/CD - Running tests in containers - Quiz 1easy Docker in CI/CD - GitLab CI with Docker - Quiz 1easy Production Patterns - Sidecar container pattern - Quiz 13medium Production Patterns - Canary deployment pattern - Quiz 2easy Production Patterns - Container orchestration in production - Quiz 15hard Production Patterns - Sidecar container pattern - Quiz 2easy Resource Management - Memory limits and reservations - Quiz 15hard