I've determined an answer to my question, but it's a bit of a pain.
First, I changed the entry in my local ~/.ssh/config file so that it looks like this:
Host pod
User root
SetEnv UNISONLOCALHOSTNAME=pod
Hostname 184.26.5.182
Port 10666
That's very easy, of course. But this won't work, however, unless sshd is configured in the container to allow the incoming ssh client to perform this SetEnv command. sshd is not configured to allow this by default. Consequently, I'll have to write a script that I can invoke on the container every time I spin it up, which does the following before I run unison on my desktop computer:
- Add the line
AcceptEnv UNISONLOCALHOSTNAMEonto the end of the container's/etc/ssh/sshd_config. - Tell the container's sshd to reload its config file by doing
kill -HUP `cat /var/run/sshd.pid`