A step before that is to have shore power to run things when in port.
In general stopping pollution near populated areas and busy ports is a bigger win and so a good place to start.
The Neoliner Origin is a pretty interesting ship. Perhaps more ships like it will start to show up as oil gets more expensive.
So all the fuel is about 4% of the cargo capacity.
Fire on a ship is extremely dangerous. Think about what your training and your first instincts both tell you to do if there's a serious fire. Where I am the training starts with four words: "Get out. Stay out". But you can't just leave a ship, in the ocean you will drown. Even lifeboats, if they're available and can be used, are much more dangerous than we'd like.
Yeah, people are probably better off not knowing how insanely cheap shipping lines are. Shipping is one of those parts of the economy and trade that is simultaneously advanced and very old fashioned (in the rickety sense) at the same time.
A single container can contain up to 8mwh of capacity. Just 125 of those gets you to 1gwh. Depending on how quick the ship goes, you might need 1-2 gwh per day. You can conserve energy by going slower. But out of 14K containers, reserving maybe a third for battery could power a ship for quite some time. Enough to e.g. cross the Pacific. There are obvious issues with weight and balance. The volume is doable but the weight creates a lot of issues.
Another challenge is indeed the cost of these batteries. That's about an order of magnitude of where it needs to be to make it financially realistic. But batteries coming down further in cost could make this more feasible. And it's not like these huge container ships are cheap. A couple of tens or even hundreds of millions of dollars worth of battery is reasonable. Billions would be unreasonable.
There are traditionally powered ships carrying many thousands of EVs with batteries already. So, putting a few gwh of battery on a ship is already happening; we're just not using them to move the ship. And batteries made in China are typically shipped to the US and elsewhere for integrating into cars, grid storage, etc. as well. If you can ship it, you might as well use it. And of course battery powered ships are already very popular for lighter short haul like ferries, tug boats, small transport barges on rivers, etc. There are plenty of them operational without major issues. Safety issues seem to be so far not a blocker.
The incentive here is not burning a millions of dollars worth of fuel per journey. Container ships use a lot of fuel. That adds up fairly rapidly to offsetting the cost of the battery. I think the question is not if batteries will be used on ships but how much batteries typical ships will have.
That's about 10 months of power for my home and car (gas heating). A 40' container on my drive or buried in the garden would power the house through the winter. It's crazy when you think how solvable season-shifting domestic power use is.
Excluding the car and heating, it's $40k for battery to store enough power to run my house for a week. Including heating at a 3:1 ratio for a heat pump compared with gas on the coldest week of the last year and it's $80k. That's less than 20% of the cost of the house. Throw in $10k of solar (about 35kWp) and even this far north - on the coldest days it tends to be clear skies and that would generate enough to recharge the battery without even touching the grid. The 35kWp wouldn't fit on the roof, but certainly would fit in a nearby field for basically zero cost for the land.
Realistically: probably exposed wire like on regular high voltage pylons. Hooked to a not-too-far (the wires will be on the larger end, but you likely don't want the other end to be anywhere it could get in the way of cargo operations, and given the voltages involved, you can probably get half way across the city before it really begins to matter) grid battery bank that normally takes care of day-to-day scale grid balancing/energy arbitrage.
Then you just run a (group of) wires to the ship and apply basically the same principles as those DC fast charge stations for cars, except that you feed the high power DC link of the charging cable from the shore-side battery through much more efficient and importantly cheaper DC/DC regulators instead of involving transformers and AC.
You obviously have remote-controlled switches and circuit breakers to keep those cables grounded while the workers hook them up. You'd probably have several DC links that have their own DC/DC regulators and can be split between ships. Mostly also because there's a limit to how high-current any individual cable/connector is made in practice and because you want to use the current rating on your DC/DC converters and the thick-but-off-the-shelf cables between the battery park and the pier.
Note that these are huge: the largest grid battery plant in operation (according to https://en.wikipedia.org/wiki/Battery_energy_storage_system ) is only 4GWh, so 1/5th of such a ship.
You'd get the benefit of charging them when it's sufficiently convenient (off-peak), and the lower energy density and very low power density don't matter nearly as much on a ship.
only problem i see is all the cells would be in parallel due to the single hull, so the voltage would be very low.