daemon.go 573 B

123456789101112131415161718192021
  1. package errors
  2. // This file contains all of the errors that can be generated from the
  3. // docker/daemon component.
  4. import (
  5. "net/http"
  6. "github.com/docker/distribution/registry/api/errcode"
  7. )
  8. var (
  9. // ErrorCodeNoSuchContainer is generated when we look for a container by
  10. // name or ID and we can't find it.
  11. ErrorCodeNoSuchContainer = errcode.Register(errGroup, errcode.ErrorDescriptor{
  12. Value: "NOSUCHCONTAINER",
  13. Message: "no such id: %s",
  14. Description: "The specified container can not be found",
  15. HTTPStatusCode: http.StatusNotFound,
  16. })
  17. )