亚洲最大看欧美片,亚洲图揄拍自拍另类图片,欧美精品v国产精品v呦,日本在线精品视频免费

  • 站長資訊網(wǎng)
    最全最豐富的資訊網(wǎng)站

    如何解決maven docker出錯(cuò)問題

    maven docker出錯(cuò)的解決辦法:1、maven項(xiàng)目修改為小寫;2、重啟docker服務(wù);3、修改maven 賬戶配置信息。

    如何解決maven docker出錯(cuò)問題

    本文操作環(huán)境:centos7系統(tǒng)、docker-maven-plugin 0.4.11版本、Dell G3電腦。

    如何解決maven docker出錯(cuò)問題?

    maven docker plugin 常見問題解決:

    1. maven 項(xiàng)目必須使用小寫,不然會(huì)一直有500 的錯(cuò)誤

    500: HTTP 500InternalServerError

    2. docker server 連接數(shù)超了

    Failed to execute goal com.spotify:docker-maven-plugin:0.4.11:build (default-cli) on project activityservice:Exception caught: java.util.concurrent.ExecutionException: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: java.io.IOException:No such file or directory

    解決方法:

    最簡單的方法, 重啟docker 服務(wù)

    systemctl restart docker

    3. maven 賬戶配置問題

    <plugin> <groupId>com.spotify</groupId> <artifactId>docker-maven-plugin</artifactId> <version>0.4.11</version> <configuration> <imageName>XXXXXXXXXX/activitycenter/${project.artifactId}</imageName> <imageTags>activitycenter-${project.version}</imageTags> <dockerDirectory>src/main/docker</dockerDirectory> <serverId>docker-image</serverId> <useConfigFile>true</useConfigFile> <resources> <resource> <targetPath>/</targetPath> <directory>${project.build.directory}</directory> <include>${project.build.finalName}.jar</include> </resource> </resources> </configuration> </plugin>

    serverId docker-image 配置信息賬戶信息:

    <server> <id>docker-image</id> <username>admin</username> <password>XXXXX</password> <configuration> <email>XXXXXX@XXXXXX.com</email> </configuration> </server>

    注意其中 email 的配置

    推薦學(xué)習(xí):《docker教程》

    贊(0)
    分享到: 更多 (0)
    網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)