[relase] v0.1.18-unstable2
- restore network clean up
This commit is contained in:
parent
18432ca138
commit
530ab120c0
|
@ -56,6 +56,10 @@ func onDockerCreated(containerID string) {
|
|||
BootstrapContainerFromTags(containerID)
|
||||
}
|
||||
|
||||
func onDockerDestroyed(containerID string) {
|
||||
utils.Debug("onDockerDestroyed: " + containerID)
|
||||
}
|
||||
|
||||
func onNetworkDisconnect(networkID string) {
|
||||
utils.Debug("onNetworkDisconnect: " + networkID)
|
||||
NetworkCleanUp(networkID)
|
||||
|
|
|
@ -221,7 +221,7 @@ func ConnectToNetworkSync(networkName string, containerID string) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func NetworkCleanUp(networkId) {
|
||||
func NetworkCleanUp(networkId string) {
|
||||
if(networkId == "bridge" || networkId == "host" || networkId == "none") {
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue