mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
Fix compilation failure in dockershim for windows
This commit is contained in:
parent
f52615894f
commit
3962b5dccf
@ -64,11 +64,11 @@ func (ds *dockerService) updateCreateConfig(
|
|||||||
|
|
||||||
func (ds *dockerService) determinePodIPBySandboxID(sandboxID string) string {
|
func (ds *dockerService) determinePodIPBySandboxID(sandboxID string) string {
|
||||||
opts := dockertypes.ContainerListOptions{
|
opts := dockertypes.ContainerListOptions{
|
||||||
All: true,
|
All: true,
|
||||||
Filter: dockerfilters.NewArgs(),
|
Filters: dockerfilters.NewArgs(),
|
||||||
}
|
}
|
||||||
|
|
||||||
f := newDockerFilter(&opts.Filter)
|
f := newDockerFilter(&opts.Filters)
|
||||||
f.AddLabel(containerTypeLabelKey, containerTypeLabelContainer)
|
f.AddLabel(containerTypeLabelKey, containerTypeLabelContainer)
|
||||||
f.AddLabel(sandboxIDLabelKey, sandboxID)
|
f.AddLabel(sandboxIDLabelKey, sandboxID)
|
||||||
containers, err := ds.client.ListContainers(opts)
|
containers, err := ds.client.ListContainers(opts)
|
||||||
|
Loading…
Reference in New Issue
Block a user