question is this: for example, if I have built a set of services using docker-compose on machine a, is there any way to quickly use these containers on other machines (b machines)?
the way I can think of is:
- put all the files needed to build on machine a (docker-compose.yml, application, mysql, nginx, and so on) on machine b, and then re-
docker-compose up
. But the problem with this is that the content modified on machine an is not easy to Synchronize. - use
docker push
to dockerhub the containers built on machine a, pull them locally on machine b, and then start each container separately withdocker run
(multiple containers can be executed at once using scripts). - see that docker-compose has a pull command, but there is no reaction after execution. I don"t know how to use this command