mirror of
https://github.com/docker/compose.git
synced 2025-05-08 00:20:12 +02:00
This updates the format of various usage strings to be more consistent with other parts of the CLI. - Use `[OPTIONS]` to indicate where command-specific options should be added - Use `[SERVICE...]` to indicate zero-or-more services - Remove some usage strings for specific options (e.g. `-e NAME=VAL`), as that option is part of the already mentioned `[OPTIONS]` and we don't provide usage for each possible option that can be passed. - Remove `[--]`, which (I think) was needed for the Python implementation, but is a general feature to stop processing flag-options. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
YAML
command: docker compose push
|
|
short: Push service images
|
|
long: |-
|
|
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
|
|
```
|
|
usage: docker compose push [OPTIONS] [SERVICE...]
|
|
pname: docker compose
|
|
plink: docker_compose.yaml
|
|
options:
|
|
- option: ignore-push-failures
|
|
value_type: bool
|
|
default_value: "false"
|
|
description: Push what it can and ignores images with push failures
|
|
deprecated: false
|
|
hidden: false
|
|
experimental: false
|
|
experimentalcli: false
|
|
kubernetes: false
|
|
swarm: false
|
|
deprecated: false
|
|
experimental: false
|
|
experimentalcli: false
|
|
kubernetes: false
|
|
swarm: false
|
|
|