Skip to content

Commit 59c6af5

Browse files
committed
pom配置文件构建项目镜像
1 parent 7c06ad5 commit 59c6af5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
1616
### 服务器构建项目镜像
1717
```bash
18+
# 进入项目目录
1819
cd /root/answer/docker/springboot-mybatis-web
20+
# 编译 Docker 镜像
1921
mvn package docker:build -Dmaven.test.skip=true -X
22+
# 启动一个容器实例
23+
docker run -d -p 8088:8888 -v /root/answer/docker/data:/home --name smw IMAGE_ID
2024
```

0 commit comments

Comments
 (0)