Docker-compose启动停止删除

1.直接启动

docker-compose up

启动后,后台运行:

docker-compose up -d

如果含有dockerfile文件,需要build:

docker-compose up -d --build

2.停止

docker-compose down

停止后并删除对应的images

docker-compose down --rmi local

转自:https://stackoverflow.com/questions/52220807/docker-compose-down-rmi-all-with-containers-sharing-image

阅读量: | 柯西君_BingWong | 2022-11-11