-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
What is docker-compose push
supposed to do?
#4283
Comments
Hi @AndreKR , Yes - |
@shin- Are there plans to rename the command, or clarify the output of If not, would you accept a push request for that? |
:) |
Same question here. What does |
the documentation for docker-compose push is pretty naive. It does let you know any details on whether you can push multiple services using comma seperated names or however.. it has been a year since the last comment which asked for more documentation and nothing in place yet... appropriate support is the key |
Agree. It's a weird command, with poorly documented Though, if you know what it is and how to use it, everything is ok
|
I'm using
Thats what its doing for me right now. |
I was also a little confused by the documentation. But it does what I expected. |
@braytonstafford I wonder what you have done to make it work for you. For me, and for most people on this page, it does nothing (while |
@costa what docker/docker-compose version are you running? |
I've upgraded to the latest (1.22) before posting this, of course. Also, `--verbose` didn't reveal anything of interest.
|
@shin- reopen please |
@shin- Personally, the problem with the current situation is that the documentation and UI are misleading, as you said yourself in that comment. |
Yes, we're going to look into deprecating it (along with bundles). As it is it definitely encourages people to try and use Compose to build and push image sets which is not the intended use. |
@shin- Can i ask what is the scenario you are looking to deprecate this? |
Wowowow! Easy there @shin-. |
We're not removing the command tomorrow or anything, but Compose is definitely the wrong tool to do this. |
@shin- |
I see a few problems.
In that case, pushing stacks via docker is not what I want. I want to use docker build Dockerfile-1 -t label1
docker build Dockerfile-2 -t label2
docker build Dockerfile-3 -t label3 But I guess its for the better to upgrade to |
|
@shin- The documentation (for one-foot-in-the-grave Docker Swarm, at least) explicitly says to do exactly that. If those docs are wrong, that still puts the onus on this team to point people to the right tool. So if Compose isn't the right tool anymore to push multiple images, then what is? If Compose isn't the right tool anymore to build and push multiple images, then what is Compose for at all? |
Kubernetes is not possible for us, because we do deploys to industrial IoT gateways that are not always online (GDPR, security, etc), so they control updates themselves - you guess it - by using docker-compose. And not much is missing to properly deploy with compose. Like #2945 The other more problematic thing that is tedious, is the setup for manifests for different architectures. Where everybody is brewing their own thing. For that, To follow up on @escalonn question. What is supposed to be the tooling for that job? If not Compose? |
Guys I need help, can anyone guide me on how to push in the docker hub? I am using docker-compose.yml and building a full-stack react + flask web app |
I am running docker-compose version 1.9.0, build 2585387 and in the inline help there is an option "push - Push service images".
The lead me to think I could have a service defined in my docker-compose.yml that has
build:
andimage:
set. Then I could rundocker-compose build
and it would build the image locally and tag it with the registry and name I specified. Then I could rundocker-compose push
ordocker-compose push web
(for a single service) to push that service's freshly built image to my registry.In reality, yes, I can build the image with
docker-compose build
and it is correctly tagged. I could then manually push it withdocker push
to my registry if I know the image tag. However,docker-compose push
does nothing. It doesn't give any error, it just exits successfully after about one second but nothing arrives at the registry. Same when I specify a service name:docker-compose push web
Is
docker-compose push
meant for something else?The text was updated successfully, but these errors were encountered: