Skip to content

Commit

Permalink
remove bridge network anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
tonicmuroq committed May 12, 2017
1 parent 44aca7c commit 9ab16bb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cluster/calcium/create_container.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,8 @@ func (c *calcium) doCreateContainerWithCPUPeriod(nodename string, count, connum
}

// remove bridge network
// only when user defined networks is given
if len(opts.Networks) != 0 {
if err := c.network.DisconnectFromNetwork(ctx, container.ID, "bridge"); err != nil {
log.Errorf("Error during disconnecting container %q from network %q, %v", container.ID, "bridge", err)
}
if err := c.network.DisconnectFromNetwork(ctx, container.ID, "bridge"); err != nil {
log.Errorf("Error during disconnecting container %q from network %q, %v", container.ID, "bridge", err)
}

// if any break occurs, then this container needs to be removed
Expand Down

0 comments on commit 9ab16bb

Please sign in to comment.