dockerkillunhealthycontainers

package module
v0.0.0-...-451e192 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: MIT Imports: 2 Imported by: 0

README

docker-kill-unhealthy-containers

Monitor Docker containers and kill the unhealthy ones.

Installation

$ go get github.com/parkr/docker-kill-unhealthy-containers/...
$ docker-kill-unhealthy-containers -h

Usage

$ docker-kill-unhealthy-containers

This process will monitor all running docker containers which report a health check and kill them if they fail 5 times in a row.

License

MIT. See LICENSE.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StopContainer

func StopContainer(dockerConn *net.Conn, containerId string) error

Types

type ContainerInfo

type ContainerInfo struct {
}

func InspectContainer

func InspectContainer(containerId string) (ContainerInfo, error)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL