2018-02-05 21:05:59 +00:00
|
|
|
package container // import "github.com/docker/docker/daemon/cluster/executor/container"
|
2016-06-14 02:52:49 +00:00
|
|
|
|
2016-12-25 06:37:31 +00:00
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
)
|
2016-06-14 02:52:49 +00:00
|
|
|
|
|
|
|
var (
|
|
|
|
// ErrImageRequired returned if a task is missing the image definition.
|
2016-12-25 06:37:31 +00:00
|
|
|
ErrImageRequired = errors.New("dockerexec: image required")
|
2016-06-14 02:52:49 +00:00
|
|
|
|
|
|
|
// ErrContainerDestroyed returned when a container is prematurely destroyed
|
|
|
|
// during a wait call.
|
2016-12-25 06:37:31 +00:00
|
|
|
ErrContainerDestroyed = errors.New("dockerexec: container destroyed")
|
2016-06-28 01:08:56 +00:00
|
|
|
|
|
|
|
// ErrContainerUnhealthy returned if controller detects the health check failure
|
2016-12-25 06:37:31 +00:00
|
|
|
ErrContainerUnhealthy = errors.New("dockerexec: unhealthy container")
|
2016-06-14 02:52:49 +00:00
|
|
|
)
|