Skip to content

Commit b4a90e9

Browse files
committed
Additional inspect to fetch container data
1 parent 4cd9208 commit b4a90e9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

service/runner_docker.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,11 @@ func (r *dockerRunner) start(command string, args []string, volumes []Volume, po
154154
return nil, maskAny(err)
155155
}
156156
r.log.Debugf("Started container %s", containerName)
157+
// Inspect container to make sure we have the latest info
158+
c, err = r.client.InspectContainer(c.ID)
159+
if err != nil {
160+
return nil, maskAny(err)
161+
}
157162
return &dockerContainer{
158163
client: r.client,
159164
container: c,

0 commit comments

Comments
 (0)