Merge pull request #1291 from aluzzardi/engine-pull-no-imageconfig

engine.#Pull: don't apply image config
This commit is contained in:
Sam Alba 2021-12-22 12:16:15 -08:00 committed by GitHub
commit 47bed011e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,6 @@ package task
import (
"context"
"encoding/json"
"fmt"
"github.com/docker/distribution/reference"
@ -60,16 +59,6 @@ func (c *pullTask) Run(ctx context.Context, pctx *plancontext.Context, s solver.
return nil, err
}
imageJSON, err := json.Marshal(image)
if err != nil {
return nil, err
}
// Apply Image Config on top of LLB instructions
st, err = st.WithImageConfig(imageJSON)
if err != nil {
return nil, err
}
result, err := s.Solve(ctx, st, pctx.Platform.Get())
if err != nil {
return nil, err