File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ import (
27
27
"sort"
28
28
"strings"
29
29
30
- "github.com/docker/docker/api/types"
31
30
"github.com/docker/docker/api/types/container"
32
31
"github.com/docker/docker/api/types/image"
33
32
"github.com/docker/docker/client"
@@ -327,19 +326,19 @@ func (d *DockerService) pullImage() error {
327
326
return nil
328
327
}
329
328
330
- func (d * DockerService ) inspect () (types. ContainerJSON , error ) {
329
+ func (d * DockerService ) inspect () (container. InspectResponse , error ) {
331
330
client , err := d .getClient ()
332
331
if err != nil {
333
- return types. ContainerJSON {}, err
332
+ return container. InspectResponse {}, err
334
333
}
335
- container , err := client .ContainerInspect (
334
+ containerResponse , err := client .ContainerInspect (
336
335
context .Background (),
337
336
d .ContainerId ,
338
337
)
339
338
if err != nil {
340
- return types. ContainerJSON {}, err
339
+ return container. InspectResponse {}, err
341
340
}
342
- return container , nil
341
+ return containerResponse , nil
343
342
}
344
343
345
344
func (d * DockerService ) refresh () error {
You can’t perform that action at this time.
0 commit comments