Skip to content

Commit 06b9495

Browse files
committed
springboot_docker
1 parent 65760c1 commit 06b9495

2 files changed

Lines changed: 16 additions & 3 deletions

File tree

springboot_docker/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
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>

springboot_docker/readme.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff 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
128128
mvn 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. 应用场景

0 commit comments

Comments
 (0)