Starting terminal results in error: /bin/sh: 1: export: : bad variable name

Hello,

Everytime I start a terminal to a certain running container, get the error “/bin/sh: 1: export: : bad variable name”. Afterwards, the terminal connection starts reconnecting.

Connecting to 3da66a8cd8dcea3fba6daeaa3657ea58...
Spawning shell...
/bin/sh: 1: export:  : bad variable name
SSH session disconnected
SSH reconnecting...
Spawning shell...
/bin/sh: 1: export:  : bad variable name
SSH session disconnected
SSH reconnecting...
Spawning shell...
/bin/sh: 1: export:  : bad variable name
SSH session disconnected

I get no other output whatsever. When I run the container locally, I can start /bin/bash and /bin/sh without any warnings or issue.

Can I get more debug output, or does anyone know what I’m doing wrong here?