Your problem is that the old containers created by docker-compose are re-used.
Starting with docker-compose up --force-recreate
should do the trick.
Though I remember this from the past, and for me, this problem no longer happens. So it could also be something else.
Please make sure the following:
- You are using a modern version of docker-compose (I am running 1.29, run
docker-compose version
)
- Please make sure the containers you are starting to are not already running (
docker-compose ps
), as then you will attach to them instead of starting them and then printing all the logs in the container is common.