You'd probably want to use a mix of local wind/solar power and a grid connection. Of course, harbors usually already have lots of infrastructure to power heavy industry (steel, refineries, etc.) and transport (e.g. rail). This just adds to that.
There are also other solutions including using container batteries and simply swapping in fresh ones. Which especially in a container harbor shouldn't be that big of a deal.
Pretty sure electric ships are not coming anywhere near long haul shipping. However for anything close to shore - it's a real future: tugboats, bunkers, tourist boats etc.
Harbors are already very large consumers of power. Sure, this adds to that demand but if you think about all the cranes, heavy industry, refineries, freight trains, etc. you can get to a few hundred mw easily. Adding more would definitely need planning. But it's not so dramatic. This just sounds like a good reason to invest in power generation.
Obviously there are better solutions, but that solution demonstrates feasibility with no further engineering work required.
(Similarly, refueling a ship is substantially more complicated than refueling an automobile.)
Maritime engineers and workers can get this job done.
To support a 48 hour recharge of the battery hypothesized upthread, you would only need to scale up this system by about 10x. Or attach 10 along the length of the ship. Or some combination of those options.
This is a non-problem.
Edit: Excuse me, but I misread the brochure. The existing system need be only scaled up by a factor of 2.5x to recharge a container ship in 48 hours.
All of the machinery is already designed to handle containers so it just becomes another type of container.