docker部署

docker build --tag wa2-server:latest .

docker kill wa2-server
docker run --rm --name wa2-server -p 8087:8088 -v $(pwd)/logs:/logs -v $(pwd)/dir:/dir  -d wa2-server

进入docker,以sh server.sh命令打开

dockerFile

FROM repo1.xqopen.cn:9443/library/java:8-jre
ADD wa2-server.jar /wa2-server.jar
CMD ["java", "-Duser.timezone=Asia/Shanghai", "-jar", "wa2-server.jar"]

 

posted @ 2017-05-23 12:49  java深似海  阅读(194)  评论(0编辑  收藏  举报