New-Container unique identifier
You can create multiple containers with the same name. We need a way to specify a unique attribute during creation so idempotent configurations can check on this. I created a DSC resource which now used the Container Name a key parameter which is contradictive but there is no alternative.
Ben Gelens commented
I already discussed the use case with Andy.
Basically, we need to be able to set a Key property from a DSC perspective so we can be sure of a 100% match between running container and configuration.
Currently the key property is managed externally from the cmdlets so we can never be 100% sure the container in question is the one we provisioned.
Sorry for delayed response.. did not receive mail for your comment.
Taylor Brown commented
Each container does have a unique ID (Get-Container | ft ContainerName, ContainerID). Does that address your need? If not please let me know so we can look into this further.