mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 01:59:07 +00:00
ensure passing context when creating builder runner
Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
parent
c72f6b49e2
commit
cb86e280b6
@ -319,10 +319,10 @@ func (dr *dockerRunnerImpl) builderEnsureContainer(ctx context.Context, name, im
|
|||||||
}
|
}
|
||||||
if recreate {
|
if recreate {
|
||||||
// create the builder
|
// create the builder
|
||||||
args := []string{"container", "run", "-d", "--name", name, "--privileged", image, "--allow-insecure-entitlement", "network.host", "--addr", fmt.Sprintf("unix://%s", buildkitSocketPath), "--debug"}
|
args := []string{"--context", dockerContext, "container", "run", "-d", "--name", name, "--privileged", image, "--allow-insecure-entitlement", "network.host", "--addr", fmt.Sprintf("unix://%s", buildkitSocketPath), "--debug"}
|
||||||
msg := fmt.Sprintf("creating builder container '%s' in context '%s'", name, dockerContext)
|
msg := fmt.Sprintf("creating builder container '%s' in context '%s'", name, dockerContext)
|
||||||
fmt.Println(msg)
|
fmt.Println(msg)
|
||||||
if err := dr.command(nil, io.Discard, io.Discard, args...); err != nil {
|
if err := dr.command(nil, nil, nil, args...); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user