2022-03-09 12:57:07 +01:00
|
|
|
# docker compose push
|
|
|
|
|
|
|
|
<!---MARKER_GEN_START-->
|
|
|
|
Push service images
|
|
|
|
|
|
|
|
### Options
|
|
|
|
|
2022-12-29 14:32:16 +01:00
|
|
|
| Name | Type | Default | Description |
|
|
|
|
|:-------------------------|:-----|:--------|:-------------------------------------------------------|
|
|
|
|
| `--ignore-push-failures` | | | Push what it can and ignores images with push failures |
|
|
|
|
| `--include-deps` | | | Also push images of services declared as dependencies |
|
|
|
|
| `-q`, `--quiet` | | | Push without printing progress information |
|
2022-03-09 12:57:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
<!---MARKER_GEN_END-->
|
2021-03-11 16:20:30 +01:00
|
|
|
|
|
|
|
## 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:
|
2021-09-13 17:14:32 +02:00
|
|
|
service1:
|
|
|
|
build: .
|
|
|
|
image: localhost:5000/yourimage ## goes to local registry
|
|
|
|
|
|
|
|
service2:
|
|
|
|
build: .
|
|
|
|
image: your-dockerid/yourimage ## goes to your repository on Docker Hub
|
|
|
|
```
|