@@ -253,18 +253,19 @@ func (c *Client) StreamNewContainers(ctx context.Context, containers chan<- dock
253253 }
254254
255255 containers <- docker.Container {
256- ID : resp .Container .Id ,
257- Name : resp .Container .Name ,
258- Image : resp .Container .Image ,
259- Labels : resp .Container .Labels ,
260- Group : resp .Container .Group ,
261- Created : resp .Container .Created .AsTime (),
262- State : resp .Container .State ,
263- Health : resp .Container .Health ,
264- Host : resp .Container .Host ,
265- Tty : resp .Container .Tty ,
266- StartedAt : resp .Container .Started .AsTime (),
267- Command : resp .Container .Command ,
256+ ID : resp .Container .Id ,
257+ Name : resp .Container .Name ,
258+ Image : resp .Container .Image ,
259+ Labels : resp .Container .Labels ,
260+ Group : resp .Container .Group ,
261+ Created : resp .Container .Created .AsTime (),
262+ State : resp .Container .State ,
263+ Health : resp .Container .Health ,
264+ Host : resp .Container .Host ,
265+ Tty : resp .Container .Tty ,
266+ StartedAt : resp .Container .Started .AsTime (),
267+ FinishedAt : resp .Container .Finished .AsTime (),
268+ Command : resp .Container .Command ,
268269 }
269270 }
270271}
@@ -287,19 +288,20 @@ func (c *Client) FindContainer(ctx context.Context, containerID string) (docker.
287288 }
288289
289290 return docker.Container {
290- ID : response .Container .Id ,
291- Name : response .Container .Name ,
292- Image : response .Container .Image ,
293- Labels : response .Container .Labels ,
294- Group : response .Container .Group ,
295- Created : response .Container .Created .AsTime (),
296- State : response .Container .State ,
297- Health : response .Container .Health ,
298- Host : response .Container .Host ,
299- Tty : response .Container .Tty ,
300- Command : response .Container .Command ,
301- StartedAt : response .Container .Started .AsTime (),
302- Stats : utils .RingBufferFrom (300 , stats ),
291+ ID : response .Container .Id ,
292+ Name : response .Container .Name ,
293+ Image : response .Container .Image ,
294+ Labels : response .Container .Labels ,
295+ Group : response .Container .Group ,
296+ Created : response .Container .Created .AsTime (),
297+ State : response .Container .State ,
298+ Health : response .Container .Health ,
299+ Host : response .Container .Host ,
300+ Tty : response .Container .Tty ,
301+ Command : response .Container .Command ,
302+ StartedAt : response .Container .Started .AsTime (),
303+ FinishedAt : response .Container .Finished .AsTime (),
304+ Stats : utils .RingBufferFrom (300 , stats ),
303305 }, nil
304306}
305307
@@ -331,19 +333,20 @@ func (c *Client) ListContainers(ctx context.Context, filter docker.ContainerFilt
331333 }
332334
333335 containers = append (containers , docker.Container {
334- ID : container .Id ,
335- Name : container .Name ,
336- Image : container .Image ,
337- Labels : container .Labels ,
338- Group : container .Group ,
339- Created : container .Created .AsTime (),
340- State : container .State ,
341- Health : container .Health ,
342- Host : container .Host ,
343- Tty : container .Tty ,
344- Command : container .Command ,
345- StartedAt : container .Started .AsTime (),
346- Stats : utils .RingBufferFrom (300 , stats ),
336+ ID : container .Id ,
337+ Name : container .Name ,
338+ Image : container .Image ,
339+ Labels : container .Labels ,
340+ Group : container .Group ,
341+ Created : container .Created .AsTime (),
342+ State : container .State ,
343+ Health : container .Health ,
344+ Host : container .Host ,
345+ Tty : container .Tty ,
346+ Command : container .Command ,
347+ StartedAt : container .Started .AsTime (),
348+ FinishedAt : container .Finished .AsTime (),
349+ Stats : utils .RingBufferFrom (300 , stats ),
347350 })
348351 }
349352
0 commit comments