使用Compose,如果我运行docker-compose build,它将重建所有容器:
> docker-compose build
Building elasticsearch
Step 1 : FROM elasticsearch:2.1
 ---> a05cc7ed3f32
Step 2 : RUN /usr/share/elasticsearch/bin/plugin install analysis-phonetic
 ---> Using cache
 ---> ec07bbdb8a18
Successfully built ec07bbdb8a18
Building search
Step 1 : FROM php:5.5.28-fpm
 ---> fcd24d1058c0
...
即使使用缓存进行重建,这也需要时间。所以我的问题是:
有没有一种方法可以只重建一个特定的容器?