docker_compose_pull.yaml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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: include-deps
  10. value_type: bool
  11. default_value: "false"
  12. description: Also pull services declared as dependencies
  13. deprecated: false
  14. experimental: false
  15. experimentalcli: false
  16. kubernetes: false
  17. swarm: false
  18. - option: quiet
  19. shorthand: q
  20. value_type: bool
  21. default_value: "false"
  22. description: Pull without printing progress information
  23. deprecated: false
  24. experimental: false
  25. experimentalcli: false
  26. kubernetes: false
  27. swarm: false
  28. examples: "suppose you have this `compose.yaml` file from the Quickstart: [Compose
  29. and Rails sample](compose/rails/).\n\n```yaml\nservices:\n db:\n image: postgres\n
  30. \ web:\n build: .\n command: bundle exec rails s -p 3000 -b '0.0.0.0'\n
  31. \ volumes:\n - .:/myapp\n ports:\n - \"3000:3000\"\n depends_on:\n
  32. \ - db\n```\n\nIf you run `docker compose pull ServiceName` in the same directory
  33. as the `ccompose.yaml` file that defines the service, \nDocker pulls the associated
  34. image. For example, to call the postgres image configured as the db service in
  35. our example, \nyou would run `docker compose pull db`.\n\n```\n$ docker compose
  36. pull db\n[+] Running 1/15\n ⠸ db Pulling 12.4s\n
  37. \ ⠿ 45b42c59be33 Already exists 0.0s\n
  38. \ ⠹ 40adec129f1a Downloading 3.374MB/4.178MB 9.3s\n
  39. \ ⠹ b4c431d00c78 Download complete 9.3s\n
  40. \ ⠹ 2696974e2815 Download complete 9.3s\n
  41. \ ⠹ 564b77596399 Downloading 5.622MB/7.965MB 9.3s\n
  42. \ ⠹ 5044045cf6f2 Downloading 216.7kB/391.1kB 9.3s\n
  43. \ ⠹ d736e67e6ac3 Waiting 9.3s\n
  44. \ ⠹ 390c1c9a5ae4 Waiting 9.3s\n
  45. \ ⠹ c0e62f172284 Waiting 9.3s\n
  46. \ ⠹ ebcdc659c5bf Waiting 9.3s\n
  47. \ ⠹ 29be22cb3acc Waiting 9.3s\n
  48. \ ⠹ f63c47038e66 Waiting 9.3s\n
  49. \ ⠹ 77a0c198cde5 Waiting 9.3s\n
  50. \ ⠹ c8752d5b785c Waiting 9.3s\n``̀"
  51. deprecated: false
  52. experimental: false
  53. experimentalcli: false
  54. kubernetes: false
  55. swarm: false