Skip to content

Commit

Permalink
bugfix: delete the JoinOptionPriority for connect panic
Browse files Browse the repository at this point in the history
It seems a bug of libnetwork. When libnetwork restores the sandbox,
it forgets to initialize the epPriority map. So the Join panic. To
void the problem, we disable Priority join option. Indeed the moby does
not use the join option

Signed-off-by: Eric Li <lcy041536@gmail.com>
  • Loading branch information
shaloulcy committed Jun 20, 2018
1 parent c23097e commit b2b7b3d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions daemon/mgr/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,5 @@ func joinOptions(endpoint *types.Endpoint) ([]libnetwork.EndpointOption, error)
var joinOptions []libnetwork.EndpointOption
// TODO: parse endpoint's links

// set priority option
joinOptions = append(joinOptions, libnetwork.JoinOptionPriority(nil, endpoint.Priority))
return joinOptions, nil
}

0 comments on commit b2b7b3d

Please sign in to comment.