当前位置: 首页 > 工具软件 > push-plugin > 使用案例 >

docker打包报错:Failed to execute goal com.spotify:docker-maven-plugin:1.0.0:push

凌成天
2023-12-01

具体报错:Failed to execute goal com.spotify:docker-maven-plugin:1.0.0:push (default-cli) on project securedoc: Exception caught: com.spotify.docker.client.shaded.com.fasterxml.jackson.databind.JsonMappingException: Can not construct instance of com.spotify.docker.client.messages.RegistryAuth: no String-argument constructor/factory method to deserialize from String value ('desktop')

解决办法:
win10:在C盘的用户目录下,找到**.docker**文件夹,然后用文档编辑器打开config.json,然后将{"credsStore":"desktop"},改为:{},保存并退出,然后重新打包即可。

 类似资料: