I have read how the containers are assigned the containers IDs: How the docker container id is generated
How is the docker ID uniqueness verified? And in which pool is it unique? Among all exited, among all running, among all deleted/removed, among all ever created by a specific docker service?
I was wondering whether the container ID is a reusable value, since it comes from a random number, how likely is it that a new container will have exactly the same container ID as another one (exited, deleted etc)?
Another relative issue: https://forums.docker.com/t/docker-container-id-uniqueness/5253
UPDATE: Could you please point me to the code that verifies that if the container ID already exists in creates a new one?