[relase] v0.1.18-unstable2

- restore network clean up
This commit is contained in:
Yann Stepienik 2023-04-18 18:46:47 +01:00
parent 18432ca138
commit 530ab120c0
2 changed files with 5 additions and 1 deletions

View file

@ -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)

View file

@ -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
}