api_versions.go 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. // APIVersion144 represents Docker Engine API version 1.44 (Engine v25.0).
  18. //
  19. // New features in this version:
  20. // - Endpoint-specific MAC address configuration
  21. // - Multiple networks can be connected during container creation
  22. // - healthcheck.start_interval parameter support
  23. //
  24. // Before this version:
  25. // - MAC address was container-wide only
  26. // - Extra networks required post-creation NetworkConnect calls
  27. // - healthcheck.start_interval was not available
  28. APIVersion144 = "1.44"
  29. // APIVersion148 represents Docker Engine API version 1.48 (Engine v28.0).
  30. //
  31. // New features in this version:
  32. // - Volume mounts with type=image support
  33. //
  34. // Before this version:
  35. // - Only bind, volume, and tmpfs mount types were supported
  36. APIVersion148 = "1.48"
  37. // APIVersion149 represents Docker Engine API version 1.49 (Engine v28.1).
  38. //
  39. // New features in this version:
  40. // - Network interface_name configuration
  41. // - Platform parameter in ImageList API
  42. //
  43. // Before this version:
  44. // - interface_name was not configurable
  45. // - ImageList didn't support platform filtering
  46. APIVersion149 = "1.49"
  47. )
  48. // Docker Engine version strings for user-facing error messages.
  49. // These should be used in error messages to provide clear version requirements.
  50. const (
  51. // DockerEngineV25 is the major version string for Docker Engine 25.x
  52. DockerEngineV25 = "v25"
  53. // DockerEngineV28 is the major version string for Docker Engine 28.x
  54. DockerEngineV28 = "v28"
  55. // DockerEngineV28_1 is the specific version string for Docker Engine 28.1
  56. DockerEngineV28_1 = "v28.1"
  57. )
  58. // Build tool version constants
  59. const (
  60. // BuildxMinVersion is the minimum required version of buildx for compose build
  61. BuildxMinVersion = "0.17.0"
  62. )