1. Write the Dockerfile (1) Right-click the project name, create a new text file, and change the name to Dockerfile without the suffix. Place it in the project root directory. (2) Fill in the Dockerfile content FROM openjdk:8 VOLUME /tmp ADD target/*.jar app.jar ENTRYPOINT ["java","-jar","/app.jar"] FROM openjdk:8 // indicates that the basic environment is jdk8 ENTRYPOINT ["java","-jar","/app.jar"] // Execute the jar command to run the project 2. Edit project configuration through docker plug-in (1) Find the configuration page Run -> Edit Configuration Click the + sign to add a new configuration and select Dockerfile for Docker (2) Edit configuration 3. Release the image and generate the container (1) Click the Servers tab <1> Shortcut key alt+8 (8 on the main keyboard) <2> Top menu -> View -> Tool Window -> Servers <3> Place the mouse on the icon in the lower left corner for a while (2) Publish via button Summarize This is the end of this article about the detailed tutorial on how to publish springboot projects in IDEA through the docker plug-in. For more information about how to publish springboot projects in IDEA, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Vue uses plug-ins to cut pictures in proportion
>>: Causes and solutions for MySQL deadlock
mysql-5.7.9 finally provides shutdown syntax: Pre...
1. What is pip pip is a Python package management...
This article example shares the specific code of ...
1. Create a SpringBooot project and package it in...
This article describes how to build a MySQL maste...
Preface MySQL query uses the select command, and ...
Table of contents Difference between char and var...
Table of contents Preface Detect Zookeeper servic...
Table of contents 0x01. Install the Pagoda Panel ...
1. SSH remote management SSH is a secure channel ...
The process of installing MySQL database and conf...
This article uses examples to describe how to use...
This article shares the specific code for WeChat ...
Preface The MySQL permission table is loaded into...
Table of contents 1. Operators Summarize 1. Opera...