docker_compose_pull.yaml 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. command: docker compose pull
  2. short: Pull service images
  3. long: "Pulls an image associated with a service defined in a `compose.yaml` file,
  4. but does not start containers based on \nthose images."
  5. usage: docker compose pull [SERVICE...]
  6. pname: docker compose
  7. plink: docker_compose.yaml
  8. options:
  9. - option: ignore-pull-failures
  10. value_type: bool
  11. default_value: "false"
  12. description: Pull what it can and ignores images with pull failures
  13. deprecated: false
  14. experimental: false
  15. experimentalcli: false
  16. kubernetes: false
  17. swarm: false
  18. - option: include-deps
  19. value_type: bool
  20. default_value: "false"
  21. description: Also pull services declared as dependencies
  22. deprecated: false
  23. experimental: false
  24. experimentalcli: false
  25. kubernetes: false
  26. swarm: false
  27. - option: no-parallel
  28. value_type: bool
  29. default_value: "true"
  30. description: DEPRECATED disable parallel pulling.
  31. deprecated: false
  32. experimental: false
  33. experimentalcli: false
  34. kubernetes: false
  35. swarm: false
  36. - option: parallel
  37. value_type: bool
  38. default_value: "true"
  39. description: DEPRECATED pull multiple images in parallel.
  40. deprecated: false
  41. experimental: false
  42. experimentalcli: false
  43. kubernetes: false
  44. swarm: false
  45. - option: quiet
  46. shorthand: q
  47. value_type: bool
  48. default_value: "false"
  49. description: Pull without printing progress information
  50. deprecated: false
  51. experimental: false
  52. experimentalcli: false
  53. kubernetes: false
  54. swarm: false
  55. examples: "suppose you have this `compose.yaml` file from the Quickstart: [Compose
  56. and Rails sample](compose/rails/).\n\n```yaml\nservices:\n db:\n image: postgres\n
  57. \ web:\n build: .\n command: bundle exec rails s -p 3000 -b '0.0.0.0'\n
  58. \ volumes:\n - .:/myapp\n ports:\n - \"3000:3000\"\n depends_on:\n
  59. \ - db\n```\n\nIf you run `docker compose pull ServiceName` in the same directory
  60. as the `ccompose.yaml` file that defines the service, \nDocker pulls the associated
  61. image. For example, to call the postgres image configured as the db service in
  62. our example, \nyou would run `docker compose pull db`.\n\n```\n$ docker compose
  63. pull db\n[+] Running 1/15\n ⠸ db Pulling 12.4s\n
  64. \ ⠿ 45b42c59be33 Already exists 0.0s\n
  65. \ ⠹ 40adec129f1a Downloading 3.374MB/4.178MB 9.3s\n
  66. \ ⠹ b4c431d00c78 Download complete 9.3s\n
  67. \ ⠹ 2696974e2815 Download complete 9.3s\n
  68. \ ⠹ 564b77596399 Downloading 5.622MB/7.965MB 9.3s\n
  69. \ ⠹ 5044045cf6f2 Downloading 216.7kB/391.1kB 9.3s\n
  70. \ ⠹ d736e67e6ac3 Waiting 9.3s\n
  71. \ ⠹ 390c1c9a5ae4 Waiting 9.3s\n
  72. \ ⠹ c0e62f172284 Waiting 9.3s\n
  73. \ ⠹ ebcdc659c5bf Waiting 9.3s\n
  74. \ ⠹ 29be22cb3acc Waiting 9.3s\n
  75. \ ⠹ f63c47038e66 Waiting 9.3s\n
  76. \ ⠹ 77a0c198cde5 Waiting 9.3s\n
  77. \ ⠹ c8752d5b785c Waiting 9.3s\n``̀"
  78. deprecated: false
  79. experimental: false
  80. experimentalcli: false
  81. kubernetes: false
  82. swarm: false