As a vic user, on non-vsan setup, I want to have the VM display name as containerName-containerShortID, and the datastore folder name as containerID; on vsan setup, I want to have both the VM display name and the datastore folder name to be containerName-containerShortID. By doing this, I can match the output from docker ps to the VM display name on vsphere web UI.
This is first part of the docker rename support.
In the future, we may improve this feature and allow the customer to set up a customized naming template for the VM display name and datastore folder name.
Acceptance Criteria:
After a containerVM is created
On non-vsan:
- The VM display name on the vsphere web UI should be containerName-containerShortID.
- The datastore folder name should be containerID.
On vsan:
- Both the VM display name on the vsphere web UI and its datastore folder name should be containerName-containerShortID.