@@ -111,6 +111,7 @@ func (c Moby) New(ctx context.Context, cfg *integration.BackendConfig) (b integr
111111 "containerd-snapshotter" : c .ContainerdSnapshotter ,
112112 },
113113 }
114+
114115 if reg , ok := bkcfg .Registries ["docker.io" ]; ok && len (reg .Mirrors ) > 0 {
115116 for _ , m := range reg .Mirrors {
116117 dcfg .Mirrors = append (dcfg .Mirrors , "http://" + m )
@@ -158,10 +159,13 @@ func (c Moby) New(ctx context.Context, cfg *integration.BackendConfig) (b integr
158159
159160 dockerdFlags := []string {
160161 "--config-file" , dockerdConfigFile ,
161- "--userland-proxy=false" ,
162162 "--tls=false" ,
163163 "--debug" ,
164164 }
165+
166+ // add platform-specific flags
167+ dockerdFlags = applyDockerdPlatformFlags (dockerdFlags , c .ID )
168+
165169 if s := os .Getenv ("BUILDKIT_INTEGRATION_DOCKERD_FLAGS" ); s != "" {
166170 dockerdFlags = append (dockerdFlags , strings .Split (strings .TrimSpace (s ), "\n " )... )
167171 }
@@ -198,7 +202,7 @@ func (c Moby) New(ctx context.Context, cfg *integration.BackendConfig) (b integr
198202 f .Close ()
199203 os .Remove (localPath )
200204
201- listener , err := net .Listen ("unix" , localPath )
205+ listener , err := net .Listen (buildkitdNetworkProtocol , getBuildkitdNetworkAddr ( localPath ) )
202206 if err != nil {
203207 return nil , nil , errors .Wrapf (err , "dockerd listener error: %s" , integration .FormatLogs (cfg .Logs ))
204208 }
@@ -234,7 +238,7 @@ func (c Moby) New(ctx context.Context, cfg *integration.BackendConfig) (b integr
234238 })
235239
236240 return backend {
237- address : "unix ://" + listener .Addr ().String (),
241+ address : buildkitdNetworkProtocol + " ://" + listener .Addr ().String (),
238242 dockerAddress : d .Sock (),
239243 rootless : c .IsRootless ,
240244 netnsDetached : false ,
0 commit comments