File: compose_push.md

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 (54 lines) | stat: -rw-r--r-- 1,562 bytes parent folder | download
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
# docker compose push

<!---MARKER_GEN_START-->
Pushes images for services to their respective registry/repository.

The following assumptions are made:
- You are pushing an image you have built locally
- You have access to the build key

Examples

```yaml
services:
  service1:
    build: .
    image: localhost:5000/yourimage  ## goes to local registry

  service2:
    build: .
    image: your-dockerid/yourimage  ## goes to your repository on Docker Hub
```

### Options

| Name                     | Type   | Default | Description                                            |
|:-------------------------|:-------|:--------|:-------------------------------------------------------|
| `--dry-run`              | `bool` |         | Execute command in dry run mode                        |
| `--ignore-push-failures` | `bool` |         | Push what it can and ignores images with push failures |
| `--include-deps`         | `bool` |         | Also push images of services declared as dependencies  |
| `-q`, `--quiet`          | `bool` |         | Push without printing progress information             |


<!---MARKER_GEN_END-->

## Description

Pushes images for services to their respective registry/repository.

The following assumptions are made:
- You are pushing an image you have built locally
- You have access to the build key

Examples

```yaml
services:
  service1:
    build: .
    image: localhost:5000/yourimage  ## goes to local registry

  service2:
    build: .
    image: your-dockerid/yourimage  ## goes to your repository on Docker Hub
```