docker compose build single container -
using compose, if run docker-compose build
, rebuild all containers :
> docker-compose build building elasticsearch step 1 : elasticsearch:2.1 ---> a05cc7ed3f32 step 2 : run /usr/share/elasticsearch/bin/plugin install analysis-phonetic ---> using cache ---> ec07bbdb8a18 built ec07bbdb8a18 building search step 1 : php:5.5.28-fpm ---> fcd24d1058c0 ...
even when rebuilding using cache, takes time. question is:
is there way rebuild 1 specific container?
yes, use name of service:
docker-compose build elasticsearch
Comments
Post a Comment