If nuclear were cheap enough to do that, we’d just put the reactor on the ship.
Note, I’m not suggesting you could use the existing infra for refrigerated containers, but I am pointing out that containers that need an electrical hookup are not novel. The difference here is the current supplied via that hookup.
Because it’s very rare currently. I’d be an uphill battle though to get permission, insurance, etc.
It could be done, but it’s currently not even close to economical. It’s still safer for the port and surrounding area than the dirty diesel they burn now.