summaryrefslogtreecommitdiff
path: root/libpod/runtime_img.go
diff options
context:
space:
mode:
Diffstat (limited to 'libpod/runtime_img.go')
-rw-r--r--libpod/runtime_img.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/runtime_img.go b/libpod/runtime_img.go
index bf0fc4585..83d4af9ba 100644
--- a/libpod/runtime_img.go
+++ b/libpod/runtime_img.go
@@ -96,6 +96,8 @@ func (r *Runtime) Build(ctx context.Context, options buildahDefine.BuildOptions,
if options.Runtime == "" {
options.Runtime = r.GetOCIRuntimePath()
}
+ // share the network interface between podman and buildah
+ options.NetworkInterface = r.network
id, ref, err := imagebuildah.BuildDockerfiles(ctx, r.store, options, dockerfiles...)
// Write event for build completion
r.newImageBuildCompleteEvent(id)