1.停止docker-compose创建的容器(先进入存放docker-compose.yml文件的文件夹里)
Stop the container(s) using the following command:docker-compose down
2.删除所有停止运行的容器
Delete all containers using the following command:docker rm -f $(docker ps -a -q)
3.删除所有的挂载目录
Delete all volumes using the following command:docker volume rm $(docker volume ls -q)
4.启动docker-compose
Restart the containers using the following command:docker-compose up -d