After packaging the project, create a Dockerfile file, write the command,
put the dockerfile and jar package on the server, and
make a package
docker build -t docker666 .
Run this image
docker run -d -p 8080:8080 --name handsomehuang666666 huang66
Visit this address
curl localhost:8080/hello
Get the return result