If container for a given tari image exists in Docker then it can't be started or restarted.
Motivation and Context
Launchpad should have full controll of tari containers and images.
Containers should be destroyed after shutdown, but it may happen to have abondened container.
On start we should check whether there is a docker container and destroy it.
Then we should create fresh new image and start it.
How Has This Been Tested?
Manually: Run Launchpad app, started and stopped containers.
Started containers from Launchpad and stopped manually on Docker.
Started the containers from Launchpad again.
Description
If container for a given tari image exists in Docker then it can't be started or restarted.
Motivation and Context
Launchpad should have full controll of tari containers and images. Containers should be destroyed after shutdown, but it may happen to have abondened container. On start we should check whether there is a docker container and destroy it. Then we should create fresh new image and start it.
How Has This Been Tested?
Manually: Run Launchpad app, started and stopped containers. Started containers from Launchpad and stopped manually on Docker. Started the containers from Launchpad again.