docker_compose_build.yaml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. command: docker compose build
  2. short: Build or rebuild services
  3. long: "Services are built once and then tagged, by default as `project_service`. \n\nIf the Compose file specifies an\n[image](https://github.com/compose-spec/compose-spec/blob/master/spec.md#image) name, \nthe image is tagged with that name, substituting any variables beforehand. See\n[variable interpolation](https://github.com/compose-spec/compose-spec/blob/master/spec.md#interpolation).\n\nIf you change a service's `Dockerfile` or the contents of its build directory, \nrun `docker compose build` to rebuild it."
  4. usage: docker compose build [SERVICE...]
  5. pname: docker compose
  6. plink: docker_compose.yaml
  7. options:
  8. - option: build-arg
  9. value_type: stringArray
  10. default_value: '[]'
  11. description: Set build-time variables for services.
  12. deprecated: false
  13. experimental: false
  14. experimentalcli: false
  15. kubernetes: false
  16. swarm: false
  17. - option: compress
  18. value_type: bool
  19. default_value: "true"
  20. description: Compress the build context using gzip. DEPRECATED
  21. deprecated: false
  22. experimental: false
  23. experimentalcli: false
  24. kubernetes: false
  25. swarm: false
  26. - option: force-rm
  27. value_type: bool
  28. default_value: "true"
  29. description: Always remove intermediate containers. DEPRECATED
  30. deprecated: false
  31. experimental: false
  32. experimentalcli: false
  33. kubernetes: false
  34. swarm: false
  35. - option: memory
  36. shorthand: m
  37. value_type: string
  38. description: |
  39. Set memory limit for the build container. Not supported on buildkit yet.
  40. deprecated: false
  41. experimental: false
  42. experimentalcli: false
  43. kubernetes: false
  44. swarm: false
  45. - option: no-cache
  46. value_type: bool
  47. default_value: "false"
  48. description: Do not use cache when building the image
  49. deprecated: false
  50. experimental: false
  51. experimentalcli: false
  52. kubernetes: false
  53. swarm: false
  54. - option: no-rm
  55. value_type: bool
  56. default_value: "false"
  57. description: |
  58. Do not remove intermediate containers after a successful build. DEPRECATED
  59. deprecated: false
  60. experimental: false
  61. experimentalcli: false
  62. kubernetes: false
  63. swarm: false
  64. - option: parallel
  65. value_type: bool
  66. default_value: "true"
  67. description: Build images in parallel. DEPRECATED
  68. deprecated: false
  69. experimental: false
  70. experimentalcli: false
  71. kubernetes: false
  72. swarm: false
  73. - option: progress
  74. value_type: string
  75. default_value: auto
  76. description: Set type of progress output ("auto", "plain", "noTty")
  77. deprecated: false
  78. experimental: false
  79. experimentalcli: false
  80. kubernetes: false
  81. swarm: false
  82. - option: pull
  83. value_type: bool
  84. default_value: "false"
  85. description: Always attempt to pull a newer version of the image.
  86. deprecated: false
  87. experimental: false
  88. experimentalcli: false
  89. kubernetes: false
  90. swarm: false
  91. - option: quiet
  92. shorthand: q
  93. value_type: bool
  94. default_value: "false"
  95. description: Don't print anything to STDOUT
  96. deprecated: false
  97. experimental: false
  98. experimentalcli: false
  99. kubernetes: false
  100. swarm: false
  101. deprecated: false
  102. experimental: false
  103. experimentalcli: false
  104. kubernetes: false
  105. swarm: false