carta
docker-compose-push(1)

docker-compose-push1

Push service images

Usage

docker compose push [OPTIONS] [SERVICE ...]

Overview

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

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

-h, --help[=false]
help for push

--ignore-push-failures[=false]
Push what it can and ignores images with push failures

--include-deps[=false]
Also push images of services declared as dependencies

-q, --quiet[=false]
Push without printing progress information

Options inherited from parent commands

--dry-run[=false]
Execute command in dry run mode

From docker-compose 2.26.1-4 in Debian 13 (Trixie). Parsed by carta from the page's man source.