Docker ssh passthrough fails

I’m running gitea in Docker on a raspberry pi, and I’ve flollowed the instructions to set up ssh passthrough but I can’t get it to work. Has anyone gotten it to work on raspberry pi?