2016-06-13 19:52:49 -07:00
|
|
|
package container
|
|
|
|
|
2016-12-25 14:37:31 +08:00
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
)
|
2016-06-13 19:52:49 -07:00
|
|
|
|
|
|
|
var (
|
|
|
|
// ErrImageRequired returned if a task is missing the image definition.
|
2016-12-25 14:37:31 +08:00
|
|
|
ErrImageRequired = errors.New("dockerexec: image required")
|
2016-06-13 19:52:49 -07:00
|
|
|
|
|
|
|
// ErrContainerDestroyed returned when a container is prematurely destroyed
|
|
|
|
// during a wait call.
|
2016-12-25 14:37:31 +08:00
|
|
|
ErrContainerDestroyed = errors.New("dockerexec: container destroyed")
|
2016-06-27 18:08:56 -07:00
|
|
|
|
|
|
|
// ErrContainerUnhealthy returned if controller detects the health check failure
|
2016-12-25 14:37:31 +08:00
|
|
|
ErrContainerUnhealthy = errors.New("dockerexec: unhealthy container")
|
2016-06-13 19:52:49 -07:00
|
|
|
)
|