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

前端 未结 10 2034
闹比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 18:05

    Maybe these steps are not quite correct, but I do like this:

    stop docker compose: $ docker-compose down

    remove the container: $ docker system prune -a

    start docker compose: $ docker-compose up -d

提交回复
热议问题