|
|
@ -21,6 +21,8 @@ import (
|
|
|
|
const DockerAPIMinVersion string = "1.24"
|
|
|
|
const DockerAPIMinVersion string = "1.24"
|
|
|
|
|
|
|
|
|
|
|
|
var version = "master"
|
|
|
|
var version = "master"
|
|
|
|
|
|
|
|
var commit = "unknown"
|
|
|
|
|
|
|
|
var date = "unknown"
|
|
|
|
|
|
|
|
|
|
|
|
var (
|
|
|
|
var (
|
|
|
|
client container.Client
|
|
|
|
client container.Client
|
|
|
@ -37,7 +39,7 @@ func init() {
|
|
|
|
func main() {
|
|
|
|
func main() {
|
|
|
|
app := cli.NewApp()
|
|
|
|
app := cli.NewApp()
|
|
|
|
app.Name = "watchtower"
|
|
|
|
app.Name = "watchtower"
|
|
|
|
app.Version = version
|
|
|
|
app.Version = version + " - " + commit + " - " + date
|
|
|
|
app.Usage = "Automatically update running Docker containers"
|
|
|
|
app.Usage = "Automatically update running Docker containers"
|
|
|
|
app.Before = before
|
|
|
|
app.Before = before
|
|
|
|
app.Action = start
|
|
|
|
app.Action = start
|
|
|
|