Home > Java > javaTutorial > How to deploy springBoot project to Docker on Mac

How to deploy springBoot project to Docker on Mac

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2023-05-16 08:58:13
forward
1466 people have browsed it

Operation process

Local deployment

Install and start docker on mac.

clone project:, and then execute in sequence:

 docker build -t docker-demo ../docker-demo
Copy after login

and

 docker run -d -p 8080:8080 docker-demo
Copy after login

Online deployment

Take centos as an example, online The deployment examples above may not be explained clearly below. I will update them in time after sorting out the examples. If you have any questions, please leave a message.

  • centos Install docker container service

  • Push the locally deployed docker-demo image to the centos docker container service.

  • Using docker's image service, you can directly use the docker command locally to operate the docker image on centos.

Result graph

How to deploy springBoot project to Docker on Mac

The above is the detailed content of How to deploy springBoot project to Docker on Mac. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
About docker
From 1970-01-01 08:00:00
0
0
0
docker install phpstudy
From 1970-01-01 08:00:00
0
0
0
Deploy snmp environment in docker
From 1970-01-01 08:00:00
0
0
0
docker: invalid reference format
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template