Debian Codegraph @

docs/reference/docker_compose_push.yaml

raw
1 command: docker compose push
2 short: Push service images
3 long: |-
4 Pushes images for services to their respective registry/repository.
5
6 The following assumptions are made:
7 - You are pushing an image you have built locally
8 - You have access to the build key
9
10 Examples
11
12 ```yaml
13 services:
14 service1:
15 build: .
16 image: localhost:5000/yourimage ## goes to local registry
17
18 service2:
19 build: .
20 image: your-dockerid/yourimage ## goes to your repository on Docker Hub
21 ```
22 usage: docker compose push [OPTIONS] [SERVICE...]
23 pname: docker compose
24 plink: docker_compose.yaml
25 options:
26 - option: ignore-push-failures
27 value_type: bool
28 default_value: "false"
29 description: Push what it can and ignores images with push failures
30 deprecated: false
31 hidden: false
32 experimental: false
33 experimentalcli: false
34 kubernetes: false
35 swarm: false
36 - option: include-deps
37 value_type: bool
38 default_value: "false"
39 description: Also push images of services declared as dependencies
40 deprecated: false
41 hidden: false
42 experimental: false
43 experimentalcli: false
44 kubernetes: false
45 swarm: false
46 - option: quiet
47 shorthand: q
48 value_type: bool
49 default_value: "false"
50 description: Push without printing progress information
51 deprecated: false
52 hidden: false
53 experimental: false
54 experimentalcli: false
55 kubernetes: false
56 swarm: false
57 inherited_options:
58 - option: dry-run
59 value_type: bool
60 default_value: "false"
61 description: Execute command in dry run mode
62 deprecated: false
63 hidden: false
64 experimental: false
65 experimentalcli: false
66 kubernetes: false
67 swarm: false
68 deprecated: false
69 hidden: false
70 experimental: false
71 experimentalcli: false
72 kubernetes: false
73 swarm: false
74