docker compose push

内容説明Push service images
利用方法docker compose push [OPTIONS] [SERVICE...]

内容説明

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

オプション

オプションデフォルト内容説明
--ignore-push-failuresPush what it can and ignores images with push failures
--include-depsAlso push images of services declared as dependencies
-q, --quietPush without printing progress information