In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
In this issue, the editor will bring you about how to set up the docker remote plug-in in idea. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
Brief introduction
Docker manipulates the container through commands, and using the idea plug-in can reduce repeated command input.
Use steps
Install plug-ins in Idea
Open Idea,Preferences | Plugins
Enter the plug-in installation interface, type docker in the search box, you can see Docker integration, click the Install button on the right to install, and restart Idea after installation.
Configure plug-in
After restarting, configure docker, connect to the remote docker service, and open the configuration interface.
Path: Preferences | Build, Execution, Deployment | Docker
Click the + sign to add a docker configuration, and enter Name and Engine API URL,URL as the docker service address.
Select Docker for Mac if you connect to the native docker.
To connect to other machines, choose TCP socket.
Tcp://:# example tcp://47.106.13.224:2375
Open docker remote connection
Exceptions may occur as follows:
Docker is required to enable the remote connection function. In CentOS, add the following configuration to the docker startup parameters to open a remote connection.
# allow all client connections-H unix:///var/run/docker.sock-H tcp://0.0.0.0:2375
Docker provides remote control of API in restful style. How to enable centos7:
Vim / lib/systemd/system/docker.service
Find the ExecStart line and modify it to:
ExecStart=/usr/bin/dockerd-H tcp://0.0.0.0:2375-H unix:///var/run/docker.sock
Restart docker
Systemctl daemon-reloadsystemctl restart docker
Other ways:
You can give birth to this article: Docker remote connection-- detailed explanation of dockerd command
Write the following in / etc/docker/daemon.json (hereinafter referred to as daemon.json)
{"hosts": ["unix:///var/run/docker.sock", "tcp://0.0.0.0:2375"]}
Idea docker console
After completing the above steps, you can use idea docker console.
Functions include: log viewing, mirror start and stop, etc.
This is how to set up the docker remote plug-in in the idea shared by the editor. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.