One day, when I was in a good mood, I thought about tossing about docker, starting from the beginning, virtual machine, building java and maven, installing docker environment, etc., and then created a project that can deploy springboot normally, and the local wins environment is running normally.
1.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
After checking, it said that the number of connections exceeded, and there was no problem after restarting, and then the second problem below appeared
Solution: restart docker: systemctl restart docker
2.pull access denied for frolvlad/alpine-oraclejdk8, repository does not exist or may require 'docker login'
At first glance, it seemed that there was a problem with docker not logging in, so I registered the account of docker and logged in with docker, so I did not use it to burn goose feathers.
I checked the Internet and there was a similar problem. It was said that there was no jdk in docker, so I said that jdk was installed.
Then I installed jdk in docker according to the Internet, but it was still useless.
docker pull carsharing/alpine-oraclejdk8-bash
The docker image I downloaded is carsharing/alpine-oraclejdk8-bash, but DockerProfile is configured with frolvlad/alpine-oraclejdk8:slim;
Later, I wondered if the From configuration of the DockerProfile file was wrong.
After changing the build dependency behind from, execute mvn clean package docker:build to build successfully; d