Files
docker-docs/compose/reference/push.md
Ulysses Souza 411bf944cb Update docs on command help (#11341)
* Update docs on command help

This is change is based on the output of the script proposed by @smola
in: https://github.com/docker/docker.github.io/pull/11173


Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>

* Formatting updates

* Minor style update

Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com>
2020-09-08 11:57:19 +01:00

728 B

description, keywords, title, notoc
description keywords title notoc
Pushes service images. fig, composition, compose, docker, orchestration, cli, push docker-compose push true
Usage: push [options] [SERVICE...]

Options:
    --ignore-push-failures  Push what it can and ignores images with push failures.

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

Example

version: '3'
services:
  service1:
    build: .
    image: localhost:5000/yourimage  # goes to local registry

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