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
Ignoring unsupported options: build in v1.13.0-rc4 #29940
Comments
I replied to your comment here; #29133 (comment)
|
Docker stacks doesn’t support building an image so we use the hub (see moby/moby#29940)
Outside of the "build" directive (which I agree doesn't make much sense here), I'd like to request that the "network_mode" from the docker-compose file be supported. I know that there's already been some discussion around this from those who'd like to use it for I'd also like to see this supported in the The use cases I see for this are:
The first use case would definitely benefit from reviving container affinity constraints from the old swarm, but that could be worked around for now using the supported placement constraints from v3 compose format. |
Should I open another issue for network_mode, or is the comment in this issue sufficient? (Just checking process-wise) |
Yes, please open a separate issue. FWIW, |
If |
@trajano It's used with |
@trajano maybe just a proper docs update with the provided infos from @thaJeztah |
Then the problem is that you need a file to deploy (docker stack deploy) and another file to build (docker-compose) |
That's not really true, as you can use the same file for both (i.e. |
Thanks @vdemeester you are correct I just realized that I was not in the latest docker-compose … I was thinking that after to write my comment … sorry! |
Actually, this is a lame decision. How hard would it be to build the image on all nodes? This complicates my life greatly as we provide stacks as a deliverable to customers and now will have to build and push EVERY variant of every image instead of building it at deploy as we did with compose. Thankfully, I can still build via Ansible and hope that the |
Using UCP and running into the same situation as others, my use case is I have a pretty simple docker image that needs to be built on |
@yoplait , How you support mode host in your deployment, could you show your docker compose file? |
it looks like the decision to HARD FORK the docker-compose, and then make BREAKING CHANGES willy nilly is the docker strategy here. why does docker stack EXPRESSLY CITE docker-compose syntax without its own wiki/docs/whatever and then force the consumer to start hunting for error text keywords like
who came up with this strategy? i dont see a single mention of "WHITELISTED DOCKER-COMPOSE DEPLOY KEYWORDS when i fumble through the official docker swarm migration steps |
Hello All,
Docker version: v1.13.0-rc4
I am getting error : Ignoring unsupported options: build, Does it mean it will not create build from Dockerfile ?
And also getting same error for network_mode: Ignoring unsupported options: network_mode.
Below is command:
DOCKER_IMAGE=akhil123 docker stack deploy -c docker-compose.yml foo
Many thanks in advance.
The text was updated successfully, but these errors were encountered: