Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to deploy springBoot project to Docker under Mac

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to deploy springBoot project to Docker under Mac. The article is very detailed and has certain reference value. Interested friends must read it!

operational flow

local deployment

Install Startup Docker on Mac. For detailed steps, please refer to: MacOS Installation Docker

clone project: docker-demo, then execute in turn:

docker build -t docker-demo ../ docker-demo

and

docker run -d -p 8080:8080 docker-demo

Online deployment

Take CentOS as an example. The example of online deployment may not be clear to me below. After sorting out the example, it will be updated in time. If you have any questions, please leave a message.

CentOS Installation docker Kubernetes Engine

Push and mirror the locally-deployed docker-demo to CentOS docker Kubernetes Engine.

Docker's image service allows you to manipulate docker images on CentOS directly locally using docker commands.

result graph

The above is "How to deploy springBoot project to Docker under Mac" all the contents of this article, thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report