Skip to content

Commit

Permalink
try to find hostname in options
Browse files Browse the repository at this point in the history
  • Loading branch information
vpaprots committed Feb 23, 2025
1 parent b008e99 commit 5cff07f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/plugin/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,13 @@ func (p *Plugin) netOptions(ctx context.Context, id string) (DHCPNetworkOptions,
return dummy, fmt.Errorf("failed to get info from Docker: %w", err)
}

log.Debugf("VP>>>>>> CreateEndpoint netOptions %+v", n)
log.Debugf("VP>>>>>> CreateEndpoint netOptions Options %+v", n.Options)
log.Debugf("VP>>>>>> CreateEndpoint netOptions Containers %+v", n.Containers)
log.Debugf("VP>>>>>> CreateEndpoint netOptions Labels %+v", n.Labels)
log.Debugf("VP>>>>>> CreateEndpoint netOptions Services %+v", n.Services)
log.Debugf("VP>>>>>> CreateEndpoint netOptions Peers %+v", n.Peers)

opts, err := decodeOpts(n.Options)
if err != nil {
return dummy, fmt.Errorf("failed to parse options: %w", err)
Expand Down

0 comments on commit 5cff07f

Please sign in to comment.