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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -