Is it possible to create container in multiple host using a single docker compose file? -
i have create containers in multiple host. have dockerfile each container. found docker-compose can used run multiple containers single yaml file. have run containera in hosta, containerb in hostb , on.. possible achieve using docker-compose ? or best way create container in different host using dockerfile.
no, docker-compose alone won't achieve this. managing containers across multiple hosts job of schedulers. the docker ecosystem: scheduling , orchestration older article, should give introduction.
the scheduler provided docker called swarm. use compose swarm place start understand how use them together.
this part of answer time limited, during mentor week there few free courses can take learn more swarm. in case operations beginner , intermediate may interesting.
Comments
Post a Comment