Spring boot with docker unable to find valid certification path to requested target error

后端 未结 2 1576
被撕碎了的回忆
被撕碎了的回忆 2021-01-13 14:39

I\'m using spring boot and am trying to set it up with Docker. I\'ve tried everything I could find on google and nothing seems to get me going. I\'

2条回答
  •  别那么骄傲
    2021-01-13 14:59

    fixed this in windows 10 by:

            
                com.spotify
                docker-maven-plugin
                0.4.13
                
                    yourImageName
                    src/main/docker
                    https://192.168.99.100:2376
                    /Users/your_user/.docker/machine/machines/default
                    
                        
                            /
                            ${project.build.directory}
                            ${project.build.finalName}.jar
                        
                    
                
            
    

    Important are these two tags:

    https://192.168.99.100:2376
    /Users/your_user/.docker/machine/machines/default
    

    I am using a dockerfile, which path you have to define with this tag:

    src/main/docker  
    

    Now you can build your jar and generate docker image via:

    mvn package docker:build

    I think on mac just follwing value has to be different:

    /Users/your_user/.docker/machine/machines/default
    

提交回复
热议问题