api_versions.go 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. Copyright 2020 Docker Compose CLI authors
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. package compose
  14. // Docker Engine API version constants.
  15. // These versions correspond to specific Docker Engine releases and their features.
  16. const (
  17. // apiVersion148 represents Docker Engine API version 1.48 (Engine v28.0).
  18. //
  19. // New features in this version:
  20. // - Volume mounts with type=image support
  21. //
  22. // Before this version:
  23. // - Only bind, volume, and tmpfs mount types were supported
  24. apiVersion148 = "1.48"
  25. // apiVersion149 represents Docker Engine API version 1.49 (Engine v28.1).
  26. //
  27. // New features in this version:
  28. // - Network interface_name configuration
  29. // - Platform parameter in ImageList API
  30. //
  31. // Before this version:
  32. // - interface_name was not configurable
  33. // - ImageList didn't support platform filtering
  34. apiVersion149 = "1.49"
  35. )
  36. // Docker Engine version strings for user-facing error messages.
  37. // These should be used in error messages to provide clear version requirements.
  38. const (
  39. // dockerEngineV28 is the major version string for Docker Engine 28.x
  40. dockerEngineV28 = "v28"
  41. // DockerEngineV28_1 is the specific version string for Docker Engine 28.1
  42. DockerEngineV28_1 = "v28.1"
  43. )
  44. // Build tool version constants
  45. const (
  46. // buildxMinVersion is the minimum required version of buildx for compose build
  47. buildxMinVersion = "0.17.0"
  48. )