Running new code with docker compose

I am trying to run the project with Docker after making some changes in the code, but it’s not rebuilding the image; it keeps using an old image. I pulled the latest code to my server and then ran docker compose down followed by docker compose up -d. How do I ensure that Docker rebuilds the image with the latest code?
2 Replies
thomast
thomast4w ago
Hi, not an expert in docker. Does docker-compose up -d --build helps?
charles
charles4w ago
@Waizbart what docker image are you using? If you want to make changes in the code, you might want to use a developer environment and build the app yourself
Want results from more Discord servers?
Add your server