【发布时间】:2017-07-16 15:43:44
【问题描述】:
我正在尝试在门户中创建一个新的 Docker for Azure CE VM。
我使用Authentication type 或Password 适当配置所有设置。
但是它总是无法部署,总是出现这个错误:
{"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}"}]}
我这次设置的User name 是waterloo,但它也无法与我尝试过的所有其他用户名一起使用。
那么,它使用的是什么 Linux 发行版,用户名政策是什么?
-
抱歉,如果这很明显,或者我提到的东西不正确,我才刚刚开始尝试学习 Azure。目前我正在评估 Azure 或 AWS 是否适合我的项目。
谢谢!
【问题讨论】:
-
我会在 Server Fault 处询问这个问题。但我不认为这是用户名政策问题。错误在发布的消息中:
output:/bin/sh: useradd: not found。无论您配置什么映像,都没有useradd实用程序。 Azure 很可能正在使用 cloud-init 或其他预配系统,这些系统依赖于映像中可用的某些二进制文件。 Docker 镜像不能有这些可用的。不过,需要更多信息以便有人可以重现(创建 VM 时采取了哪些设置/步骤)。 -
你使用的是什么基础镜像?