common.go 739 B

1234567891011121314151617181920
  1. package api // import "github.com/docker/docker/api"
  2. // Common constants for daemon and client.
  3. const (
  4. // DefaultVersion of the current REST API.
  5. DefaultVersion = "1.45"
  6. // MinSupportedAPIVersion is the minimum API version that can be supported
  7. // by the API server, specified as "major.minor". Note that the daemon
  8. // may be configured with a different minimum API version, as returned
  9. // in [github.com/docker/docker/api/types.Version.MinAPIVersion].
  10. //
  11. // API requests for API versions lower than the configured version produce
  12. // an error.
  13. MinSupportedAPIVersion = "1.24"
  14. // NoBaseImageSpecifier is the symbol used by the FROM
  15. // command to specify that no base image is to be used.
  16. NoBaseImageSpecifier = "scratch"
  17. )