Altalogy / tari

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

feat(backend): start_and_restart_docker_container_even_when_it_is_already_registered_in_Docker #240

Closed alex1307 closed 2 years ago

alex1307 commented 2 years ago

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.