Skip to content

Commit

Permalink
fix(docker): Fix "no EndpointSettings for network"
Browse files Browse the repository at this point in the history
  • Loading branch information
iBug committed May 23, 2023
1 parent 7f0c0ba commit d2b5747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/core/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func (c *Core) Sync(ctx context.Context, opts SyncOptions) (*api.Container, erro
hostConfig.NetworkMode = "host"
default:
// https://github.com/moby/moby/blob/master/daemon/create_test.go#L15
networkingConfig.EndpointsConfig[r.Network] = nil
networkingConfig.EndpointsConfig[r.Network] = &network.EndpointSettings{}
}

ct, err := c.docker.ContainerCreate(
Expand Down

0 comments on commit d2b5747

Please sign in to comment.