I wanted to know how the container id is generated so please provide the source code that provides the container id when the docker run is executed?
相关问题
- Docker task in Azure devops won't accept "$(pw
- Unable to run mariadb when mount volume
- Unspecified error (0x80004005) while running a Doc
- What would prevent code running in a Docker contai
- How to reload apache in php-apache docker containe
Here is a code snippet from docker daemon's function for creating Containers:
So, the logic of creating ID and Name is in generateIDAndName function:
Here is stringid sources and the concrete method is generateID with false as input parameter:
As you can see, the value is randomly generated with this random