Auto remove container with docker-compose.yml

前端 未结 4 580
渐次进展
渐次进展 2020-12-23 13:25

docker-compose run has a flag --rm that auto removes the container after run. I am wondering if theres an equivalent config with docker-compose.yml

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-23 13:39

    Simply run docker-compose up && docker-compose rm -fsv

提交回复
热议问题