Idea sets up the docker remote plug-in


Introduction to the

Docker operates containers through commands, and the use of idea plug-in can reduce repeated command input.

Using the step

Install plug-ins in Idea

Open theIdea,Preferences | Plugins

Enter the plug-in installation interface, enter docker in the search box to see docker integration, click the Install button on the right to Install, and restart Idea after installation.
Idea sets up the docker remote plug-in

Configure the plug-in

Configure docker after restart, connect to the remote docker service, and open the configuration interface.

Path:Preferences | Build, Execution, Deployment | Docker
Idea sets up the docker remote plug-in

Click the + sign to add a docker configuration, enter the Name and Engine API URL, the URL is the docker service address.

Select if connecting to native dockerDocker for Mac

Connecting to other machines is optionalTCP socket

TCP: // IP < > : < port >
Example #

Enable docker remote connection

Exceptions may occur as follows:
Idea sets up the docker remote plug-in

You need docker to enable remote connection. The following configuration can be added to the docker startup parameter in CentOS to enable remote connection.

# allows all client connections
-H unix:///var/run/docker.sock -H tcp://

Docker provides a remote control API in a restful style. Centos7 opening mode:

vim /lib/systemd/system/docker.service

Find ExecStart and change it to:

ExecStart=/usr/bin/dockerd -H tcp:// -H unix:///var/run/docker.sock

Restart the docker

systemctl daemon-reload
systemctl restart docker

Other ways:

You can read this article: Docker remote connection – dockerd command details

Write the following in /etc/dock/daemon.json


Idea docker console

Once you’ve done that, you can use the idea docker console.

Functions include: log view, mirror start stop and so on.
Idea sets up the docker remote plug-in