Skip to content

Commit b246af3

Browse files
author
Tony Worm
committed
hof/test: fix error in inception test
1 parent f25116e commit b246af3

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

test/dagger/main/dockerd-in-dagger.go

+7-3
Original file line numberDiff line numberDiff line change
@@ -147,23 +147,27 @@ func (R *runtime) daemonContainer() (*dagger.Container, error) {
147147

148148
c = c.WithEnvVariable("CACHE", time.Now().String())
149149
c = c.WithExec([]string{"curl", "https://registry-1.docker.io"})
150-
c = c.WithExec(
150+
c = c.WithEntrypoint(
151151
[]string{
152152
"dockerd",
153153
"--log-level=warn",
154154
"--host=tcp://0.0.0.0:2375",
155155
"--tls=false",
156156
"--debug",
157157
},
158-
dagger.ContainerWithExecOpts{InsecureRootCapabilities: true},
159158
)
160159
return c, nil
161160
}
162161

163162
func (R *runtime) attachService(c, s *dagger.Container) (*dagger.Container, error) {
164163
t := c
165164
t = t.WithEnvVariable("DOCKER_HOST", "tcp://global-dockerd:2375")
166-
t = t.WithServiceBinding("global-dockerd", s)
165+
t = t.WithServiceBinding("global-dockerd", s.AsService(
166+
dagger.ContainerAsServiceOpts{
167+
UseEntrypoint: true,
168+
InsecureRootCapabilities: true,
169+
},
170+
))
167171

168172
return t, nil
169173
}

0 commit comments

Comments
 (0)