Looking at the manual as to whether Docker can be handled directly from IntelliJ, there is, after all, IDEA.
It seems that ** Docker Integration Plugin ** is installed and used in IntelliJ. So I decided to put it in.
The environment I am checking is the following Windows machine. I'll try it on my Mac later.
Select "File"-"Settings"-"Plugins" from the IntellJ menu.
Once you've found the Docker Integration plugin, click the install button to install it.
2.1. Expose Daemon on TCP without TLS
The default setting for TCP connection with the Docker daemon is TLS, so change it from the Docker settings screen to no TLC.
You can see that ** Docker ** has been added under Build, Execution, Deployment on the IntelliJ settings screen. Select Docker.
Leave the Docker configuration as is.
|Connect to Docker daemon with||TCP socket|
|Engine API URL||tcp://localhost:2375|
Select Connect from the IntelliJ Docker view.
If the connection is successful, you will see a list of images managed by Docker.
From the IntelliJ settings menu, select Registry under Docker and add the configuration.
Enter the information for the Docker registry to connect to. By default, you can choose between ** Docker Hub ** and ** quai.io ** addresses.
Try pulling the Tomcat image (Tomcat 8.5.23) published on Docker Hub.
Right-click in the IntelliJ Docker view and select Pull Image ...
The user-authenticated Docker Hub set in 3 is used when registering (pushing) the image.
Specify the image you want to pull and its tag, and click OK.
Right-click on the IntelliJ Docker view and select Create container.
Specify the container name.
If necessary, you can make additional settings for the container such as port binding. After configuration, click Run to start the container.
Access port 8888 in your host environment. You can see that Tomcat is running.
You can now manage Docker on IntelliJ. To deploy an application to an application server container such as Tomcat, it seems possible to mount the application built using Docker's volume function.