Altalogy / tari

The Tari protocol
https://tari.com
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

cleanup docker containers on launch ? #359

Open tarnas14 opened 2 years ago

tarnas14 commented 2 years ago

right now we clean up containers on WindowEvent::Destroyed, but this is done based on internal state of the backend

on launch we need to basically remove all containers (that we are sure are ours?) how can we be sure they're ours and not somebody else just running a random grafana docker?

make sure if this is not already happening: when creating a new container the old one (even crashed) is removed, so remaining containers from last run are not blocking us from creating new ones