Docker Community Forums

Share and learn in the Docker community.

Container is not renewing (composer up)

I try to setup my first own docker container by using composer up to build a dev PHP 5.6 Apache server.

It seems to work but when I remove the container and image and rebuild it it always seems to start the old container.
I figured that because the mounting of the volumes is not working correct so I switched into the container and created a „temporary“ file called index.html (and some others). But after removing the container and image and rebuild it the files are still there?

What do I do wrong?

Thanks for helping.

I figured the problem was that I did not remove the volumes which caused that always the old volumes were connected to the containers.
To remove the old volumes use the following command:
docker volume rm $(docker volume ls -q -f 'dangling=true')