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 (
2323 "time"
2424
2525 dockertypes "github.com/docker/docker/api/types"
26+ dockercontainer "github.com/docker/docker/api/types/container"
2627 dockerimage "github.com/docker/docker/api/types/image"
2728 dockersystem "github.com/docker/docker/api/types/system"
2829 "github.com/pkg/errors"
@@ -156,8 +157,8 @@ func APIVersionString() (string, error) {
156157 return version .APIVersion , nil
157158}
158159
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
161162 err := apiGetRequest (fmt .Sprintf ("http://d/v1.0.0/containers/%s/json" , id ), & data )
162163 return data , err
163164}
You can’t perform that action at this time.
0 commit comments