Container shipping companies ended 2024 with substantial profits, driven by increased volumes and higher freight rates.