It doesn’t work, because of a couple reasons:
- (principally) the bootstrapping process, where all your configuration is applied & the database seeded, involves running code in the container, stopping the container, then starting it again with a different pid1
- backups are broken because the pg_dump binary is mismatched with the server
- several other odd differences break other stuff, too (can’t remember right now)