docker_compose_build.yaml 3.0 KB

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