docker-compose up for only certain containers

前端 未结 7 606
盖世英雄少女心
盖世英雄少女心 2020-12-22 20:31

I have a docker-compose.yml which contain several containers. Three of them are for my app (client, server and database) and the rest are for various dev tools

7条回答
  •  情话喂你
    2020-12-22 20:54

    You can start containers by using:

    $ docker-compose up -d client
    

    This will run containers in the background and output will be avaiable from

    $ docker-compose logs
    

    and it will consist of all your started containers

提交回复
热议问题