-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker-compose build --push <registry> #1126
Comments
I would give this a +1 as either an addition to docker-compose or as part of a different "build tool".
Thoughts? [Addendum] Additionally, this would perhaps solve the problem of pushing?
|
+1 |
👍 |
3 similar comments
+1 |
+1 |
+1 |
+1 (and another +1 for a vote feature in github) |
+1 |
16 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
👍 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
2 similar comments
+1 |
+1 |
cy8aer opened this Issue on Mar 17, 2015 Any progress/updates? We have swarm today. In my opinion this is not anything someone wants. Today this is something docker-compose really needs. Tried building images somewhere in swarm? Doesn't make fun. Having two distinct compose YAMLs, one to build the image, still not being able to push it with compose, another YAML to deploy the service (, again somewhere in swarm). Assumption on a 100 peer swarm cluster, one would be forced to
|
In my opinion, people wants a solution to the problem of: build the When other developers want the updated images, They don't have a solution like: pull my new docker images and start my services again, They need to update their NOTE: I don't know if compose is the best tool to do this job or if this way is not considered a "good practice". |
We also need a way to do either Since you can use a
|
+1 |
2 similar comments
+1 |
+1 |
It seems that this feature is no-longer needed with the creation of the captain tool? |
Compose 1.8 currently available as RC2 has added |
Since harbur/captain was mentioned above, I thought I might also mention dobi. It's a different take on the same problem of automating build tasks with docker (build, test, push, etc). |
Interesting, thanks for the reference to dobi. It looks like it handles tagging and test targets better than captain, but no registry pushing. Thanks,
|
You can push to a registry with an image:push task. There's no official examples of this just yet, but you would create an For example, I use The config is here: https://github.com/dnephin/dobi/blob/b07d8b124/dobi.yaml#L34-L37 |
Not to derail this thread, but how does that work with private registries? Prefix the image name with the registry address? Thanks,
|
+1 |
4 similar comments
+1 |
+1 |
+1 |
+1 |
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. |
+1 |
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 that mean you do something like this: services:
service:
build: .
image: registry.acme.com/acme/service:latest and it works !
|
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? |
@wayoung you can simply 'docker-compose pull' to pull all the remote images |
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? |
@wayoung |
Issue grooming: According to #1126 (comment) this was fixed (by providing |
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)
The text was updated successfully, but these errors were encountered: