Add --revive-stopped flag to start stopped containers after an update

This commit is contained in:
Zois Pagoulatos 2019-11-07 10:45:42 +01:00
parent 81540bcb59
commit 8befd82609
No known key found for this signature in database
GPG key ID: A40759B6C8AC2811
4 changed files with 23 additions and 3 deletions

View file

@ -93,11 +93,13 @@ func PreRun(cmd *cobra.Command, args []string) {
noPull, _ := f.GetBool("no-pull")
includeStopped, _ := f.GetBool("include-stopped")
reviveStopped, _ := f.GetBool("revive-stopped")
removeVolumes, _ := f.GetBool("remove-volumes")
client = container.NewClient(
!noPull,
includeStopped,
reviveStopped,
removeVolumes,
)