Error: Deploying a docker-compose app on Kubernetes using Docker for Windows

0 votes

I am trying to run a docker-compose.yml file against kubernetes on Docker for Windows. I'm currently using the Edge version of Docker for Windows -- 18.03.0-ce-rc4 -- and I have kubernetes enabled.

I get the following error:

PS C:\dev\projects\python\kubetest> docker stack deploy --compose-file .\docker-compose.yml mystack
Ignoring unsupported options: build

In short, by following the documentation, I'm unable to get anything deployed to kubernetes on Docker for Windows.

Oct 11, 2018 in Docker by Sophie may
• 9,850 points
58 views

1 answer to this question.

0 votes

Due to the lack of support for a build there would be no image to run for the web service containers.

Compose can manage the build for you on a single Docker host. As Swarm and Kubernetes are normally run across multiple nodes, an image should reference a registry available on the network so all nodes can access the same image.

Build the image externally

docker-compose build web

Try this and see if it works.

answered Oct 11, 2018 by Tyrion anex
• 8,270 points

Related Questions In Docker

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 56,900 points
216 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to update docker-compose on Docker for Windows?

Please check "version" value in the docker-compose.yml ...READ MORE

answered Sep 20, 2018 in Docker by Tyrion anex
• 8,270 points
87 views