mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-21 21:30:48 +02:00
Handle container links
Ensures that linked containers are restarted if any of their dependencies are restarted -- and makes sure that everything happens in the correct order.
This commit is contained in:
parent
ce4ed7316c
commit
c02c4b9ec1
12 changed files with 854 additions and 183 deletions
5
main.go
5
main.go
|
@ -1,6 +1,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"os/signal"
|
||||
"sync"
|
||||
|
@ -50,7 +51,9 @@ func start(c *cli.Context) {
|
|||
|
||||
for {
|
||||
wg.Add(1)
|
||||
updater.Run()
|
||||
if err := updater.Run(); err != nil {
|
||||
fmt.Println(err)
|
||||
}
|
||||
wg.Done()
|
||||
|
||||
time.Sleep(secs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue