errors.go 867 B

123456789101112131415
  1. package docker
  2. import "github.com/uozi-tech/cosy"
  3. var (
  4. e = cosy.NewErrorScope("docker")
  5. ErrClientNotInitialized = e.New(500001, "docker client not initialized")
  6. ErrFailedToExec = e.New(500002, "failed to exec command: {0}")
  7. ErrFailedToAttach = e.New(500003, "failed to attach to exec instance: {0}")
  8. ErrReadOutput = e.New(500004, "failed to read output: {0}")
  9. ErrExitUnexpected = e.New(500005, "command exited with unexpected exit code: {0}, error: {1}")
  10. ErrContainerStatusUnknown = e.New(500006, "container status unknown")
  11. ErrInspectContainer = e.New(500007, "failed to inspect container: {0}")
  12. ErrNginxNotRunningInAnotherContainer = e.New(500008, "nginx is not running in another container")
  13. )