You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would be a nice feature for creating and deploying of containers on a different (development) machine than the productive ones (which may run via image: option)
Reacted by Stu Schwartz, Luke Hatcher, Wills Ward, Alexey Shevchenko, Florian Klein, Jon Black, Paul Wais, Michael Kuzmin, Daniel Johansson, Juan Fraire and 52 more
I would give this a +1 as either an addition to docker-compose or as part of a different "build tool".
In addition it would be nice (and UNIXy) to add an "images" verb, so as to output a flat list of the images built by the tool.
I'm thinking things like this would be possible:
$ docker-compose build
$ docker-compose images | while read i; do docker save $i -o $i.tgz ; done
Thoughts?
[Addendum] Additionally, this would perhaps solve the problem of pushing?
$ docker-compose images | while read i ; do docker push my.registry.server:5000/$i ; done
Reacted by Florian Klein, Stephan Rodemeier, Pavel White, Desmond Kirrane, Michael K., Raul Cioldin, Adam Klinkosz, Giorgi Koguashvili, Shyam Sunder, vladkras and 1 more
+1
docker-compose is the best/easiest way to build a bundle of related docker images. Being able to easily push these resulting docker images to a registry is a natural extension of this workflow. My use-case is a development use-case where a bundle of images are built by Jenkins. I'd like to be able to easily push these images somewhere for developers to pull and use/run.
Reacted by Jeeva S. Chelladhurai, David Reess, Erin Drummond, Siva, Felix Schröter and Jonathan Hassall
It's a bit hard to understand, since docker has both the abilities 'running a registry server' and 'docker-compose(pull)', why not integrate these two seamlessly?
But still recommend this proposal: just integrate with a well-known service providers, like Github, Bitbucket, AWS, Google Cloud, Azure etc, running own registry server the speed, security gonna be some serious problem/bottleneck.
If I push 3 services to a private repository using this method and a single docker-compose.yml, can I docker-compose pull all three services with just one command, or do I need to pull them all back separately?
That only works if I am in the same directory as the docker-compose.yml. I'm thinking of the case where I docker-compose push to the registry, then try to pull it down on another machine without the original docker-compose.yml. Is that possible?
Reacted by Shyamala Gopalakrishnan and briancaffey
@wayoung
How it's supposed to know which images you're trying to pull without any information provided by you?
You'd still need compose file to start services, why won't you just copy it?
Activity
[-]docker-compose build --push <repository>[/-][+]docker-compose build --push <registry>[/+]dnephin commentedon Mar 18, 2015
Some related issues #213, #457
jmmills commentedon Jul 13, 2015
I would give this a +1 as either an addition to docker-compose or as part of a different "build tool".
In addition it would be nice (and UNIXy) to add an "images" verb, so as to output a flat list of the images built by the tool.
I'm thinking things like this would be possible:
Thoughts?
[Addendum] Additionally, this would perhaps solve the problem of pushing?
PeterRJones commentedon Dec 8, 2015
+1
docker-compose is the best/easiest way to build a bundle of related docker images. Being able to easily push these resulting docker images to a registry is a natural extension of this workflow. My use-case is a development use-case where a bundle of images are built by Jenkins. I'd like to be able to easily push these images somewhere for developers to pull and use/run.
FelikZ commentedon Dec 9, 2015
👍
rashtao commentedon Dec 11, 2015
+1
binaryanomaly commentedon Dec 30, 2015
+1
arthurbarros commentedon Jan 8, 2016
+1
crackmac commentedon Feb 4, 2016
+1 (and another +1 for a vote feature in github)
clemensberndt commentedon Feb 9, 2016
+1
tgagor commentedon Feb 26, 2016
+1
bonclay7 commentedon Feb 26, 2016
+1
wjpbiblio commentedon Feb 26, 2016
+1
31 remaining items
jhagege commentedon Sep 15, 2016
+1
prdonahue commentedon Sep 19, 2016
+1
Rinkana190 commentedon Oct 14, 2016
+1
kilianc commentedon Oct 21, 2016
+1
ldshi commentedon Oct 31, 2016
+1
ldshi commentedon Oct 31, 2016
So can someone explain the status of this proposal? @aanand @Vanuan @michael-k
And actually after this I just went through these two topics also: Deploying a registry server and #3900 - Docker compose pull does not work with custom registry
It's a bit hard to understand, since docker has both the abilities 'running a registry server' and 'docker-compose(pull)', why not integrate these two seamlessly?
But still recommend this proposal: just integrate with a well-known service providers, like Github, Bitbucket, AWS, Google Cloud, Azure etc, running own registry server the speed, security gonna be some serious problem/bottleneck.
valiro21 commentedon Jan 2, 2017
+1
mathroc commentedon Apr 17, 2017
you can now choose the image name & tag when building a service:
– https://docs.docker.com/compose/compose-file/#build
this name is then used when using
docker-compose pushthat mean you do something like this:
and it works !
wayoung commentedon May 30, 2017
If I push 3 services to a private repository using this method and a single docker-compose.yml, can I docker-compose pull all three services with just one command, or do I need to pull them all back separately?
omercnet commentedon May 30, 2017
@wayoung you can simply 'docker-compose pull' to pull all the remote images
wayoung commentedon May 30, 2017
That only works if I am in the same directory as the docker-compose.yml. I'm thinking of the case where I docker-compose push to the registry, then try to pull it down on another machine without the original docker-compose.yml. Is that possible?
Vanuan commentedon May 31, 2017
@wayoung
How it's supposed to know which images you're trying to pull without any information provided by you?
You'd still need compose file to start services, why won't you just copy it?
ijc commentedon Mar 26, 2019
Issue grooming: According to #1126 (comment) this was fixed (by providing
docker-compose push) in 1.8 rc2. Therefore closing.Modify document [issue 1109] (docker#1126)