I'm trying to create a new Docker for Azure CE VM in the portal.
I configure all the settings as appropriate, using an Authentication type
of Password
.
However it always fails to deploy, always with this error:
{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.","details":[{"code":"Conflict","message":"{\r\n \"status\": \"Failed\",\r\n \"error\": {\r\n \"code\": \"ResourceDeploymentFailure\",\r\n \"message\": \"The resource operation completed with terminal provisioning state 'Failed'.\",\r\n \"details\": [\r\n {\r\n \"code\": \"OSProvisioningClientError\",\r\n \"message\": \"Username specified for the VM is invalid for this Linux distribution. Error details: (000004)Failed to handle ovf-env.xml: (000007)Failed to create user account:waterloo, retcode:127, output:/bin/sh: useradd: not found\\n.\"\r\n }\r\n ]\r\n }\r\n}"}]}
The User name
I set this time was waterloo
, but it has also failed to work with every other User name I've tried.
So, what Linux distribution is it using and what is the username policy?
-
Apologies if this is very obvious, or I've referred to things incorrectly, I've only just started trying to learn Azure. Currently I'm evaluating if Azure or AWS is the way to go for my project.
Thank you!
Option 1: Using the Azure PortalGo to Virtual Machines services on your Azure portal. Select the Virtual Machine that you want to find the username. On the Virtual Machine property page, from the option tree, click on the Run command option from the Operations section.
Reset the Password in the Azure PortalLog into the Azure portal. Go to the list of Virtual Machines and select the firewall VM. In the Virtual Machine blade, click Reset password in the SUPPORT + TROUBLESHOOT section. From the Mode list, select Reset password.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With