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
• 10,620 points
1,080 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,700 points

Related Questions In Docker

0 votes
1 answer
0 votes
1 answer
+2 votes
1 answer
+2 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
• 58,020 points
2,739 views
0 votes
2 answers
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 21, 2018 in Docker by Tyrion anex
• 8,700 points
3,585 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP