There's the crane lifting a crane lifting a crane method. [0]
Though I suspect another problem would be getting another ship large enough for all those cranes and strong enough to support all the weight close enough to the ship without them damaging each other by knocking into each other from waves and weight movement.
I also forgot about the matter of transporting those giant cranes onto the site. That itself would probably take weeks.
[0]https://www.constructionjunkie.com/blog/2015/8/9/watch-a-con...
"Though I suspect another problem would be getting another ship large enough for all those cranes and strong enough to support all the weight close enough to the ship without them damaging each other by knocking into each other from waves and weight movement."
I don't thinks this is your concern. Desperate times, desperate measures. Likely you would fix/attach the crane ship to the container ship. I am sure they are willing to salvage two ships at this time. The daily losses must be gigantic.
I thought about this. I don't think a chopper can lift the container. Depending on the size of the containers, even the biggest chopper might not be enough https://www.businessinsider.com/russia-mi-26-helicopter-llft...
Get the ship moving again, I think if you pull too hard, it may fall apart. There is no infrastructure to unload it.
Gut feeling: Mount a crane on a ship and start unloading it to a smaller ship.