Idea configure docker

IDEA, as a development computer, needs to remotely connect to the Docker service deployed on another Linux computer. We log in to the machine and perform docker remote access configuration:

https://www.cnblogs.com/zoujiaojiao/p/11912142.html

Choose Plugins in idea, plug-in

 The docker plugin has been installed

Connect to remote Docker service

 

Plus sign on the left: add docker configuration 

 

 

 

If there is a connection failure:

# vi /lib/systemd/system/docker.service 
修改:
ExecStart=/usr/bin/dockerd -H tcp://tcp://0.0.0.0:2375 -H unix://var/run/docker.sock --containerd=/run/containerd/containerd.sock

Restart the docker service:

[root@dev_vonedao_95 ~]# systemctl daemon-reload
[root@dev_vonedao_95 ~]# systemctl restart docker
[root@dev_vonedao_95 ~]# ps -ef |grep docker
root     12319     1  1 18:27 ?        00:00:00 /usr/bin/dockerd -H tcp://tcp://0.0.0.0:2375 -H unix://var/run/docker.sock --containerd=/run/containerd/containerd.sock
root     12461 12217  0 18:27 pts/0    00:00:00 grep --color=auto docker

Connect again and it will succeed!

Own project deployment process

Deployment process:

1.

2.

 

 

First execute clean, then install, then execute the container command, then log in to the gxjsyjzx009 server to execute the command (docker push 10.1.119.12/dcy/dcy-dataworks-server:latest), and finally log in to the dev-dcy-data-works of the Rancher platform Perform redeployment.

3. Deployment on the rancher platform

Go to the workload page of the default project

first step:

 

The second step:

third step:

Perform port mapping and modify it by clicking the project upgrade. 

Guess you like

Origin blog.csdn.net/shujuelin/article/details/108215204