docker 构建推送到阿里云仓库失败

推送到远程仓库(阿里云)失败

使用命令  mvn clean package docker:build

参考博客  https://blog.csdn.net/boling_cavalry/article/details/78934391

在build的时候报错

Failed to execute goal com.spotify:docker-maven-plugin:0.4.12:build (default-cli) on project dockerpackage: Exception caught: 254 -> [Help 1]

打开调试模式

mvn clean package docker:build -X

[DEBUG] Auth Config AuthConfig{username=XXX, password=XXX, [email protected], serverAddress=registry.cn-chengdu.aliyuncs.com}
[DEBUG] Registry Config Json {"registry.cn-chengdu.aliyuncs.com":{"serveraddress":"registry.cn-chengdu.aliyuncs.com","password":"xxxx","auth":"","email":"[email protected]","username":"bapi1号"}}

"auth":"" 认证信息为空

原因,阿里云登录用的中文用户名,纯英文和数字不会有这个问题,亲测可行。

你可能感兴趣的:(部署)