azukiapp / azk

azk is a lightweight open source development environment orchestration tool. Instantly & safely run any environment on your local machine.
http://azk.io
Apache License 2.0
898 stars 63 forks source link

Stop containers of running systems on `azk agent stop` #651

Open fearenales opened 8 years ago

fearenales commented 8 years ago

When the agent is stopped by azk agent stop, the running systems aren't stopped, i.e. their containers keep running (check it using adocker ps after stopping azk agent).

Those lost containers are removed only when the agent is started:

. . .
azk: Cleaning 2 lost containers
. . .

My purpose is to run that cleaning routine on the azk agent stop as well.