make container aliveness check part of the ipam & dns API
...rather than conducting it implicitly when an ID "looks like" a container ID. Closes #971
This commit is contained in:
1 parent
5559f1df2e
commit
6596c8b1a7
4 files changed
+19
-25
No files matched your search
+1
-1
@@ -74,7 +74,7 @@ func ServeHTTP(listener net.Listener, version string, server *DNSServer, dockerC
|
||||
} // oh, I already know this. whatever.
|
||||
}
|
||||
|
||||
if dockerCli != nil && dockerCli.IsContainerNotRunning(idStr) {
|
||||
if r.FormValue("check-alive") == "true" && dockerCli != nil && dockerCli.IsContainerNotRunning(idStr) {
|
||||
Log.Infof("[http] '%s' is not running: removing", idStr)
|
||||
server.Zone.DeleteRecords(idStr, name, ip)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user