1
0

docker_compose_exec.yaml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. command: docker compose exec
  2. short: Execute a command in a running container.
  3. long: "This is the equivalent of `docker exec` targeting a Compose service. \n\nWith
  4. this subcommand you can run arbitrary commands in your services. Commands are
  5. by default allocating a TTY, so \nyou can use a command such as `docker compose
  6. exec web sh` to get an interactive prompt."
  7. usage: docker compose exec [options] [-e KEY=VAL...] [--] SERVICE COMMAND [ARGS...]
  8. pname: docker compose
  9. plink: docker_compose.yaml
  10. options:
  11. - option: ""
  12. shorthand: T
  13. value_type: bool
  14. default_value: "false"
  15. description: |
  16. Disable pseudo-TTY allocation. By default `docker compose exec` allocates a TTY.
  17. deprecated: false
  18. experimental: false
  19. experimentalcli: false
  20. kubernetes: false
  21. swarm: false
  22. - option: detach
  23. shorthand: d
  24. value_type: bool
  25. default_value: "false"
  26. description: 'Detached mode: Run command in the background.'
  27. deprecated: false
  28. experimental: false
  29. experimentalcli: false
  30. kubernetes: false
  31. swarm: false
  32. - option: env
  33. shorthand: e
  34. value_type: stringArray
  35. default_value: '[]'
  36. description: Set environment variables
  37. deprecated: false
  38. experimental: false
  39. experimentalcli: false
  40. kubernetes: false
  41. swarm: false
  42. - option: index
  43. value_type: int
  44. default_value: "1"
  45. description: |
  46. index of the container if there are multiple instances of a service [default: 1].
  47. deprecated: false
  48. experimental: false
  49. experimentalcli: false
  50. kubernetes: false
  51. swarm: false
  52. - option: privileged
  53. value_type: bool
  54. default_value: "false"
  55. description: Give extended privileges to the process.
  56. deprecated: false
  57. experimental: false
  58. experimentalcli: false
  59. kubernetes: false
  60. swarm: false
  61. - option: user
  62. shorthand: u
  63. value_type: string
  64. description: Run the command as this user.
  65. deprecated: false
  66. experimental: false
  67. experimentalcli: false
  68. kubernetes: false
  69. swarm: false
  70. - option: workdir
  71. shorthand: w
  72. value_type: string
  73. description: Path to workdir directory for this command.
  74. deprecated: false
  75. experimental: false
  76. experimentalcli: false
  77. kubernetes: false
  78. swarm: false
  79. deprecated: false
  80. experimental: false
  81. experimentalcli: false
  82. kubernetes: false
  83. swarm: false