api_versions.go 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. // - ContainerCreate API accepts multiple EndpointsConfig entries
  21. //
  22. // Before this version:
  23. // - Only a single EndpointsConfig entry was accepted in ContainerCreate
  24. // - Extra networks must be connected individually after container creation via NetworkConnect
  25. apiVersion144 = "1.44"
  26. // apiVersion148 represents Docker Engine API version 1.48 (Engine v28.0).
  27. //
  28. // New features in this version:
  29. // - Volume mounts with type=image support
  30. //
  31. // Before this version:
  32. // - Only bind, volume, and tmpfs mount types were supported
  33. apiVersion148 = "1.48"
  34. // apiVersion149 represents Docker Engine API version 1.49 (Engine v28.1).
  35. //
  36. // New features in this version:
  37. // - Network interface_name configuration
  38. // - Platform parameter in ImageList API
  39. //
  40. // Before this version:
  41. // - interface_name was not configurable
  42. // - ImageList didn't support platform filtering
  43. apiVersion149 = "1.49"
  44. )
  45. // Docker Engine version strings for user-facing error messages.
  46. // These should be used in error messages to provide clear version requirements.
  47. const (
  48. // dockerEngineV28 is the major version string for Docker Engine 28.x
  49. dockerEngineV28 = "v28"
  50. // DockerEngineV28_1 is the specific version string for Docker Engine 28.1
  51. DockerEngineV28_1 = "v28.1"
  52. )
  53. // Build tool version constants
  54. const (
  55. // buildxMinVersion is the minimum required version of buildx for compose build
  56. buildxMinVersion = "0.17.0"
  57. )