1
0

docker_compose_down.yaml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. command: docker compose down
  2. short: Stop and remove containers, networks
  3. long: |-
  4. Stops containers and removes containers, networks, volumes, and images created by `up`.
  5. By default, the only things removed are:
  6. - Containers for services defined in the Compose file
  7. - Networks defined in the networks section of the Compose file
  8. - The default network, if one is used
  9. Networks and volumes defined as external are never removed.
  10. Anonymous volumes are not removed by default. However, as they don’t have a stable name, they will not be automatically
  11. mounted by a subsequent `up`. For data that needs to persist between updates, use explicit paths as bind mounts or
  12. named volumes.
  13. usage: docker compose down
  14. pname: docker compose
  15. plink: docker_compose.yaml
  16. options:
  17. - option: remove-orphans
  18. value_type: bool
  19. default_value: "false"
  20. description: Remove containers for services not defined in the Compose file.
  21. deprecated: false
  22. experimental: false
  23. experimentalcli: false
  24. kubernetes: false
  25. swarm: false
  26. - option: rmi
  27. value_type: string
  28. description: |
  29. Remove images used by services. "local" remove only images that don't have a custom tag ("local"|"all")
  30. deprecated: false
  31. experimental: false
  32. experimentalcli: false
  33. kubernetes: false
  34. swarm: false
  35. - option: timeout
  36. shorthand: t
  37. value_type: int
  38. default_value: "10"
  39. description: Specify a shutdown timeout in seconds
  40. deprecated: false
  41. experimental: false
  42. experimentalcli: false
  43. kubernetes: false
  44. swarm: false
  45. - option: volumes
  46. shorthand: v
  47. value_type: bool
  48. default_value: "false"
  49. description: |
  50. Remove named volumes declared in the `volumes` section of the Compose file and anonymous volumes attached to containers.
  51. deprecated: false
  52. experimental: false
  53. experimentalcli: false
  54. kubernetes: false
  55. swarm: false
  56. deprecated: false
  57. experimental: false
  58. experimentalcli: false
  59. kubernetes: false
  60. swarm: false