File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323 <plugin >
2424 <groupId >com.spotify</groupId >
2525 <artifactId >docker-maven-plugin</artifactId >
26- <version >1.2 .0</version >
26+ <version >1.0 .0</version >
2727 <executions >
2828 <execution >
2929 <id >build-image</id >
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ public class DemoController {
107107```
108108#### 2.10 docker开启远程访问,编辑/usr/lib/systemd/system/docker.service文件
109109```
110- ExecStart=/usr/bin** -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock
110+ ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock
111111```
112112#### 2.11 重启docker
113113``` shell script
@@ -127,4 +127,17 @@ server.port=8990
127127``` shell script
128128mvn package
129129```
130- ### 3. 应用场景
130+ ### 3. 防火墙操作
131+ #### 3.1 添加端口
132+ ``` shell script
133+ firewall-cmd --zone=public --add-port=8888/tcp --permanent
134+ ```
135+ #### 3.1 重载
136+ ``` shell script
137+ firewall-cmd --reload
138+ ```
139+ #### 3.1 查询
140+ ``` shell script
141+ firewall-cmd --query-port=8888/tcp
142+ ```
143+ ### 4. 应用场景
You can’t perform that action at this time.
0 commit comments