簡體   English   中英

Dockerize Spring Boot應用

[英]Dockerize Spring Boot App

我正在研究Spring Boot Apps的Dockerization。

不幸的是,我無法獲得正在運行的項目。 即使是來自Pivotal的官方教程項目也不會啟動。

命令.\\mvnw install dockerfile:build引發錯誤:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19.886 s
[INFO] Finished at: 2017-08-03T11:20:52+02:00
[INFO] Final Memory: 34M/536M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.spotify:dockerfile-maven-plugin:1.3.4:build (default-cli) on project gs-spring-boot-docker: Could not build image: 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 ('wincred')
[ERROR] at [Source: N/A; line: -1, column: -1] (through reference chain: java.util.LinkedHashMap["credsStore"])
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

有人對此問題有解決方案嗎? 還是可以指出正確的方向?

在最近的Docker更新中,他需要〜/ .docker / config.json中的字段auths

這可以在我的Mac上為我修復。

    {
      "auths": {
        "https://index.docker.io/v1/": {}
      },
      "credsStore" : "osxkeychain",
      "credSstore" : "osxkeychain"
     }

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM