In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces how to package docker images in Springboot, the content is very detailed, interested friends can refer to, I hope it can be helpful to you.
1. Configure Docker Remote API
Vi / usr/lib/systemd/system/docker.service
Directly add the / usr/bin/dockerd after the ExecStart startup parameter to open the TCP connection:-H tcp://0.0.0.0:2375-H unix:///var/run/docker.sock
Reload systemd systemctl daemon-reload
Restart docker
Local test: curl http://localhost:2375/info remote test ip:2375/info returns json data remotely may be a firewall problem
two。 It is best to add the docker-maven-plugin plug-in 4.0.0 org.springframework.boot spring-boot-starter-parent 2.0.4.RELEASE 1.0.0-SNAPSHOT demo jar demo Spring Boot 3.4.0 1.8 1.8 UTF-8 UTF-8 zh when the parent image 3.Springboot is ready for the Linux service. _ CN wechat-mp-demo org.springframework.boot spring-boot-starter-web com.fasterxml.jackson.core jackson-databind org.springframework.boot Spring-boot-starter-test test org.springframework.boot spring-boot-maven-plugin com.spotify docker-maven-plugin 1.0.0 ${docker.image.prefix} / ${project.artifactId} http://192.168.137.200:2375 src/main/docker / ${project.build.directory} ${project.build.finalName} .jar is here about how to package docker images in Springboot. I hope the above content can be of some help to you and learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.