docker-compose push
Usage: docker-compose push [options] [SERVICE...]
Options:
--ignore-push-failures Push what it can and ignores images with push failures.
利用方法: docker-compose push [オプション] [サービス名...]
オプション:
--ignore-push-failures 可能なものはプッシュし、失敗するものは無視します。
サービスのイメージをそれぞれのregistry/repository
に対してプッシュします。
以下のことを前提としています。
-
ローカルにビルド済のイメージをプッシュするものとします。
-
ビルドキーに対してアクセス権を有しているものとします。
利用例
version: '3'
services:
service1:
build: .
image: localhost:5000/yourimage # ローカルレジストリへ
service2:
build: .
image: youruser/yourimage # 自ユーザーの DockerHub レジストリへ