Documentation
¶
Index ¶
- func CheckForMultipleDockwatchInstances(client container.Client, cleanup bool, scope string) error
- func CheckForSanity(client container.Client, filter types.Filter, rollingRestarts bool) error
- func Update(client container.Client, params types.UpdateParams) (types.Report, error)
- func UpdateImplicitRestart(containers []types.Container)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckForMultipleDockwatchInstances ¶
CheckForMultipleDockwatchInstances will ensure that there are not multiple instances of the dockwatch running simultaneously. If multiple dockwatch containers are detected, this function will stop and remove all but the most recently started container. This behaviour can be bypassed if a scope UID is defined.
func CheckForSanity ¶
CheckForSanity makes sure everything is sane before starting
func Update ¶
Update looks at the running Docker containers to see if any of the images used to start those containers have been updated. If a change is detected in any of the images, the associated containers are stopped and restarted with the new image.
func UpdateImplicitRestart ¶
UpdateImplicitRestart iterates through the passed containers, setting the `LinkedToRestarting` flag if any of it's linked containers are marked for restart
Types ¶
This section is empty.