From 0554bfa9a1ee2a7c9d3ff24749317fd9b3202ca2 Mon Sep 17 00:00:00 2001 From: maride Date: Sat, 8 Sep 2018 00:28:34 +0200 Subject: Stop all challenge containers on shutdown --- src/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main.go') diff --git a/src/main.go b/src/main.go index 4833896..574d156 100644 --- a/src/main.go +++ b/src/main.go @@ -55,9 +55,10 @@ func cleanup(signalChannel chan os.Signal, server http.Server) { server.Close() log.Println("Stopping VPN container") stopVPN() + log.Println("Stopping challenge containers") + stopAllChallengeContainers() log.Println("Deleting Docker networks") deleteNetwork(vpnHostNetworkName) deleteNetwork(containerNetworkName) - // TODO: stop challenge containers os.Exit(0) } -- cgit 1.4.1