UPGRADE OF POSTGRES FAILED - I've tried everything

Assuming the server is Ubuntu run this outside the container:

sudo apt-get remove nginx nginx-common