Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
300 views
in Technique[技术] by (71.8m points)

docker - Why when I upload a new jar to AWS EC2 I do not see the changes in the functionalities


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...