File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import (
23
23
"time"
24
24
25
25
dockertypes "github.com/docker/docker/api/types"
26
+ dockercontainer "github.com/docker/docker/api/types/container"
26
27
dockerimage "github.com/docker/docker/api/types/image"
27
28
dockersystem "github.com/docker/docker/api/types/system"
28
29
"github.com/pkg/errors"
@@ -156,8 +157,8 @@ func APIVersionString() (string, error) {
156
157
return version .APIVersion , nil
157
158
}
158
159
159
- func InspectContainer (id string ) (dockertypes. ContainerJSON , error ) {
160
- var data dockertypes. ContainerJSON
160
+ func InspectContainer (id string ) (dockercontainer. InspectResponse , error ) {
161
+ var data dockercontainer. InspectResponse
161
162
err := apiGetRequest (fmt .Sprintf ("http://d/v1.0.0/containers/%s/json" , id ), & data )
162
163
return data , err
163
164
}
You can’t perform that action at this time.
0 commit comments