Old files remain in new docker container Old files remain in new docker container docker docker

Old files remain in new docker container


Delete the volumes of the containers after stopping and removing the containers by below commands,

docker kill $(docker ps -aq)

docker rm $(docker ps -aq)

Then remove the volumes of the containers by below command.

docker system prune --volumes -f

This removes all the unused networks and volumes .

Hope this helps.