How to rebuild docker container in docker-compose.yml?

前端 未结 10 2121
闹比i
闹比i 2021-01-29 17:14

There are scope of services which defined in docker-compose.yml. These service have been started. I need to rebuild only one of these and start it without up other services. I r

10条回答
  •  独厮守ぢ
    2021-01-29 17:50

    docker-compose up

    $ docker-compose up -d --no-deps --build 
    

    --no-deps - Don't start linked services.

    --build - Build images before starting containers.

提交回复
热议问题