File: docker_compose_pull.yaml

package info (click to toggle)
docker-compose 2.32.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,300 kB
  • sloc: makefile: 113; sh: 2
file content (139 lines) | stat: -rw-r--r-- 4,835 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
command: docker compose pull
short: Pull service images
long: |
    Pulls an image associated with a service defined in a `compose.yaml` file, but does not start containers based on those images
usage: docker compose pull [OPTIONS] [SERVICE...]
pname: docker compose
plink: docker_compose.yaml
options:
    - option: ignore-buildable
      value_type: bool
      default_value: "false"
      description: Ignore images that can be built
      deprecated: false
      hidden: false
      experimental: false
      experimentalcli: false
      kubernetes: false
      swarm: false
    - option: ignore-pull-failures
      value_type: bool
      default_value: "false"
      description: Pull what it can and ignores images with pull failures
      deprecated: false
      hidden: false
      experimental: false
      experimentalcli: false
      kubernetes: false
      swarm: false
    - option: include-deps
      value_type: bool
      default_value: "false"
      description: Also pull services declared as dependencies
      deprecated: false
      hidden: false
      experimental: false
      experimentalcli: false
      kubernetes: false
      swarm: false
    - option: no-parallel
      value_type: bool
      default_value: "true"
      description: DEPRECATED disable parallel pulling
      deprecated: false
      hidden: true
      experimental: false
      experimentalcli: false
      kubernetes: false
      swarm: false
    - option: parallel
      value_type: bool
      default_value: "true"
      description: DEPRECATED pull multiple images in parallel
      deprecated: false
      hidden: true
      experimental: false
      experimentalcli: false
      kubernetes: false
      swarm: false
    - option: policy
      value_type: string
      description: Apply pull policy ("missing"|"always")
      deprecated: false
      hidden: false
      experimental: false
      experimentalcli: false
      kubernetes: false
      swarm: false
    - option: quiet
      shorthand: q
      value_type: bool
      default_value: "false"
      description: Pull without printing progress information
      deprecated: false
      hidden: false
      experimental: false
      experimentalcli: false
      kubernetes: false
      swarm: false
inherited_options:
    - option: dry-run
      value_type: bool
      default_value: "false"
      description: Execute command in dry run mode
      deprecated: false
      hidden: false
      experimental: false
      experimentalcli: false
      kubernetes: false
      swarm: false
examples: |-
    Consider the following `compose.yaml`:

    ```yaml
    services:
      db:
        image: postgres
      web:
        build: .
        command: bundle exec rails s -p 3000 -b '0.0.0.0'
        volumes:
          - .:/myapp
        ports:
          - "3000:3000"
        depends_on:
          - db
    ```

    If you run `docker compose pull ServiceName` in the same directory as the `compose.yaml` file that defines the service,
    Docker pulls the associated image. For example, to call the postgres image configured as the db service in our example,
    you would run `docker compose pull db`.

    ```console
    $ docker compose pull db
    [+] Running 1/15
     ⠸ db Pulling                                                             12.4s
       ⠿ 45b42c59be33 Already exists                                           0.0s
       ⠹ 40adec129f1a Downloading  3.374MB/4.178MB                             9.3s
       ⠹ b4c431d00c78 Download complete                                        9.3s
       ⠹ 2696974e2815 Download complete                                        9.3s
       ⠹ 564b77596399 Downloading  5.622MB/7.965MB                             9.3s
       ⠹ 5044045cf6f2 Downloading  216.7kB/391.1kB                             9.3s
       ⠹ d736e67e6ac3 Waiting                                                  9.3s
       ⠹ 390c1c9a5ae4 Waiting                                                  9.3s
       ⠹ c0e62f172284 Waiting                                                  9.3s
       ⠹ ebcdc659c5bf Waiting                                                  9.3s
       ⠹ 29be22cb3acc Waiting                                                  9.3s
       ⠹ f63c47038e66 Waiting                                                  9.3s
       ⠹ 77a0c198cde5 Waiting                                                  9.3s
       ⠹ c8752d5b785c Waiting                                                  9.3s
    ```

    `docker compose pull` tries to pull image for services with a build section. If pull fails, it lets you know this service image must be built. You can skip this by setting `--ignore-buildable` flag.
deprecated: false
hidden: false
experimental: false
experimentalcli: false
kubernetes: false
swarm: false