I am storing container ID in my database, based on that I regularly check if my container is still running or has stopped using 'Docker Inspect' I update this info in my database.
The above method is fine if I only want to update the status but if someone wants to change the env. variables and use the docker run command to create the container then a new container ID gets generated.
So my question is if it is possible to generate the new docker container with the container Id it had previously?