From 2dcd8d55a32d43276b9ab9e7025621e26da12ff1 Mon Sep 17 00:00:00 2001 From: Jesse Adametz Date: Tue, 18 Apr 2017 16:07:57 -0500 Subject: [PATCH] Clarifies compose push destination and requirements (#2843) * Clarifies compose push destination and requirements * Edits --- compose/reference/push.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/compose/reference/push.md b/compose/reference/push.md index ab9c677b15..262899cf2d 100644 --- a/compose/reference/push.md +++ b/compose/reference/push.md @@ -12,4 +12,24 @@ Options: --ignore-push-failures Push what it can and ignores images with push failures. ``` -Pushes images for services. +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 + +```yaml +version: '3' +services: + service1: + build: . + image: localhost:5000/yourimage # goes to local registry + + service2: + build: . + image: youruser/yourimage # goes to youruser DockerHub registry +```