Apparently the schema for devcontainer has changed quite a bit. Here in 2025, put this in the root of your devcontainer.json:
"portsAttributes": { "*": { "onAutoForward": "ignore" } },
And rebuild.