gcgarner / IOTstack

docker stack for getting started on IOT on the Raspberry PI
GNU General Public License v3.0
1.52k stars 582 forks source link

Remove docker-compose down b/c it is not needed and adds downtime #148

Open camisatx opened 4 years ago

camisatx commented 4 years ago

The docker update process can be performed with the containers active. The docker-compose up process automatically replaces any old container, even if it is still active. This means that there is nearly zero downtime.

So instead of shutting contains down before pulling and building updates (a lengthy process), the current containers can continue performing tasks, only being replaced when any updates have finished being processed.

The docker-compose build line could also be integrated into the up process via a flag: docker-compose up -d --build, however, that may obscure the flow of things hence I didn't propose it.

tablatronix commented 3 years ago

I noticed this yesterday also, took docker down while it was running, was unexpected