Debian Codegraph @

docs/reference/compose_push.md

raw
1 # docker compose push
2
3 <!---MARKER_GEN_START-->
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
23 ### Options
24
25 | Name | Type | Default | Description |
26 |:-------------------------|:-------|:--------|:-------------------------------------------------------|
27 | `--dry-run` | `bool` | | Execute command in dry run mode |
28 | `--ignore-push-failures` | `bool` | | Push what it can and ignores images with push failures |
29 | `--include-deps` | `bool` | | Also push images of services declared as dependencies |
30 | `-q`, `--quiet` | `bool` | | Push without printing progress information |
31
32
33 <!---MARKER_GEN_END-->
34
35 ## Description
36
37 Pushes images for services to their respective registry/repository.
38
39 The following assumptions are made:
40 - You are pushing an image you have built locally
41 - You have access to the build key
42
43 Examples
44
45 ```yaml
46 services:
47 service1:
48 build: .
49 image: localhost:5000/yourimage ## goes to local registry
50
51 service2:
52 build: .
53 image: your-dockerid/yourimage ## goes to your repository on Docker Hub
54 ```