Azure VM creation fails because of invalid username
When I create Docker for Azure CE VM via Azure portal, I get the same error.To create this VM, we should specify username to docker.
Based on my knowledge, I think there are something wrong with this template.
This VM's image publisher is docker
, product is docker-ce
:
"plan": { "name": "docker-ce", "publisher": "docker", "product": "docker-ce" },
This image only support username "docker".
So we can specify username to docker
to create it.
Template should like this:
"osProfile": { "computerNamePrefix": "[parameters('virtualMachineName')]", "adminUsername": "docker",
By default when you SSH into a manager, you will be logged in as the regular username: docker
More information about docker for Azure CE vm, please refer to this link.