docker_compose_build.yaml 3.2 KB

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