added functionality to remove containers from all groups based on the container ID provided

This commit is contained in:
2021-08-12 20:29:11 +04:00
parent d288d1f2d6
commit 1fe5db06c0
3 changed files with 135 additions and 8 deletions

View File

@@ -97,6 +97,11 @@ func RemoveContianer(IP string,ID string) error {
fmt.Println("success")
}
// Remove container from groups it exists in
err = RemoveContainerGroups(ID)
if err != nil {
return err
}
// Remove container created from the tracked list
err = RemoveTrackedContainer(ID)
if err != nil {