Upgrade libkermit and dependencies
And use ContainerAPIClient where needed 👼
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
parent
58b6d92ce2
commit
c170ddc7ae
4 changed files with 158 additions and 57 deletions
|
@ -343,7 +343,7 @@ func getLabels(container dockertypes.ContainerJSON, labels []string) (map[string
|
|||
return foundLabels, globalErr
|
||||
}
|
||||
|
||||
func listContainers(ctx context.Context, dockerClient client.APIClient) ([]dockertypes.ContainerJSON, error) {
|
||||
func listContainers(ctx context.Context, dockerClient client.ContainerAPIClient) ([]dockertypes.ContainerJSON, error) {
|
||||
containerList, err := dockerClient.ContainerList(ctx, dockertypes.ContainerListOptions{})
|
||||
if err != nil {
|
||||
return []dockertypes.ContainerJSON{}, err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue