So, is there a way of somehow cleaning up those docker containers, e.g. when uv version is not available?
Another option is to manually clean up Docker containers periodically, for instance by searching for all containers using a particular image:
docker ps --filter ancestor=crystaldba/postgres-mcp