Skip to content

Recommend Buildkit for using multi-stage builds #12231

Closed

Description

@dlindenkreuz

File: develop/develop-images/multistage-build.md

When people started off using Docker a couple of versions ago, their default is set to not use Buildkit. However, Buildkit is required to properly execute -t release stages. Without Buildkit, other stages of the same Dockerfile are executed as well although they shouldn't.

Please add a hint that the described features are only properly usable with Buildkit enabled.

Activity

  1. connorjburton commented on Dec 14, 2021

    @connorjburton

    +1 To this, the difference in how pipelines work are drastically different when using multi stage + --target + buildkit.

    We were using Jenkins that didn't use buildkit and using --target gave us unexpected execution of stages.

  2. andreisilviudragnea commented on Jul 29, 2022

    @andreisilviudragnea
    Contributor

    I have added a deeper explanation here about using multi-stage builds without BuildKit enabled.

  3. docker-robott commented on Mar 20, 2023

    @docker-robott
    Collaborator

    Closed issues are locked after 30 days of inactivity.
    This helps our team focus on active issues.

    If you have found a problem that seems similar to this, please open a new issue.

    /lifecycle locked

  4. locked and limited conversation to collaborators on Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions