Skip to content

Commit

Permalink
补充文档
Browse files Browse the repository at this point in the history
  • Loading branch information
eacdy committed Sep 7, 2016
1 parent 64c0ae1 commit 62be57b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chapter8/8.1 使用Maven插件构建Docker镜像.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]

1. imageName必须符合正则[a-z0-9-_.],否则将会构建失败
2. 该插件还有其他的使用方法,譬如将构建Docker镜像绑定在某个Maven的phase上执行、譬如对Docker密码的加密等等。文档[https://github.com/spotify/docker-maven-plugin](https://github.com/spotify/docker-maven-plugin)上写得非常清楚,不做赘述了。
3. 插件默认使用localhost:2375去连接Docker,如果你的Docker端口不是2375,需要配置环境变量`DOCKER_HOST=tcp://<host>:2375`



Expand Down

0 comments on commit 62be57b

Please sign in to comment.