Imcoding's recent timeline updates
Imcoding

Imcoding

V2EX member #447940, joined on 2019-10-20 09:52:03 +08:00
Per Imcoding's settings, the topics list is hidden
Deals info, including closed deals, is not hidden
Imcoding's recent replies
DD😏
Jun 13, 2020
Replied to a topic by d0v0b 职场话题 想辞职,但失去了人生方向怎么办
经济独立是人格独立的前提,先搞钱其它的再说吧
Mar 30, 2020
Replied to a topic by bfqymmt Docker docker 如何快速更换 jar 包
1. 构建一个带 Java 环境的镜像
2. 编写 docker-compose.xml 启动容器
这个文件配置 volume 等并配置初始命令(启动 jar )
3. 修改了 jar 后直接将 jar 拷贝到 volume 配置的主机路径就好了( jar 名要相同),重启容器

按你的做法相当于把项目搞到了镜像里面了,要更改项目除了重新构建镜像还可以使用 docker cp 命令,把新的 jar 复制到容器内,替换到容器内的 jar,但是这样太麻烦了。
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2506 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 12:20 · PVG 20:20 · LAX 05:20 · JFK 08:20
♥ Do have faith in what you're doing.