podman healthcheck run (phase 1)

Add the ability to manually run a container's healthcheck command.
This is only the first phase of implementing the healthcheck.
Subsequent pull requests will deal with the exposing the results and
history of healthchecks as well as the scheduling.

Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
baude
2019-02-26 20:54:57 -06:00
parent 645426fe79
commit 598bde52d0
20 changed files with 475 additions and 1 deletions

View File

@ -0,0 +1,39 @@
% podman-healthcheck-run(1)
## NAME
podman\-healthcheck\-run- Run a container healthcheck
## SYNOPSIS
**podman healthcheck run** [*options*] *container*
## DESCRIPTION
Runs the healthcheck command defined in a running container manually. The resulting error codes are defined
as follows:
* 0 = healthcheck command succeeded
* 1 = healthcheck command failed
* 125 = an error has occurred
Possible errors that can occur during the healthcheck are:
* unable to find the container
* container has no defined healthcheck
* container is not running
## OPTIONS
**--help**
Print usage statement
## EXAMPLES
```
$ podman healtcheck run mywebapp
```
## SEE ALSO
podman-healthcheck(1)
## HISTORY
Feb 2019, Originally compiled by Brent Baude <bbaude@redhat.com>

View File

@ -0,0 +1,22 @@
% podman-healthcheck(1)
## NAME
podman\-healthcheck- Manage healthchecks for containers
## SYNOPSIS
**podman healthcheck** *subcommand*
## DESCRIPTION
podman healthcheck is a set of subcommands that manage container healthchecks
## SUBCOMMANDS
| Command | Man Page | Description |
| ------- | ------------------------------------------------- | ------------------------------------------------------------------------------ |
| run | [podman-healthcheck-run(1)](podman-healthcheck-run.1.md) | Run a container healthcheck |
## SEE ALSO
podman(1)
## HISTORY
Feb 2019, Originally compiled by Brent Baude <bbaude@redhat.com>