At this point I am just assuming you have:
- a Dockerfile
- a JAR <-- that you modify
- a docker-compose.yaml file
You ran once docker-compose up -d
to start and build your service. You need to run docker-compose up -d --build
for any subsequent changes to your JAR or Dockerfile otherwise docker-compose will just use the already built image. You can check that with docker image ls
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…