* Container shipping fundamentals at best since 2010 -CEO
* June cyber attack to cost $200-$300 mln
* Q2 freight rates rise 22 pct
* Q2 hit by $700 mln impairment charges
* Shares up 1.15 percent at 0904 GMT (add freight rates increase, CEO comment, background, analyst comment)
COPENHAGEN, Aug 16 (Reuters) - Denmark's A.P. Moller Maersk gave an upbeat outlook for container shipping on Wednesday, lifting its shares as investors looked beyond one-off second-quarter charges.
Maersk has been hit by low oil prices at its energy arm and sliding prices in its shipping business in recent years due to lacklustre global trade and a glut of available ships for hire.
But its chief executive Soren Skou, who has staked his future on Maersk as a transport business, said the container shipping industry is showing signs of recovery this year as freight rates have picked up, while overcapacity is easing as orders for new vessels fall and existing ones are scrapped.
"Container shipping fundamentals are at their best since 2010," Skou told Reuters following Maersk's results.
Skou announced plans last September for Maersk to focus on transport, while seeking alliances or a separate listing for its energy division, which includes Maersk Oil. But Maersk has so far revealed little about progress on its plans, and Skou declined to elaborate on Wednesday.
Maersk shares have risen about 80 percent since February, in line with an improvement in the Baltic Dry index, which measures the price of moving raw materials by sea.
Although its shares initially fell 3.5 percent after Wednesday's results, they were trading 1.15 percent higher at 13,230 Danish crowns by 0904 GMT.
"There is no material concern on the underlying performance in the quarter, given that the earnings miss is driven by non-cash items," Nordea analysts said in a note.
Maersk reported a net loss stood of $264 million, compared with expectations for a $507 million net profit, according to an average of forecasts in a Reuters poll.
The loss was largely due to impairment charges of about $700 million in the terminal and tanker business, which Maersk said were due to lower asset valuations in Maersk Tankers and a loss of five contracts in its APM Terminals unit in the first half of the year. Maersk said the loss of contracts was a one-off because APM Terminals signed 18 contracts for new volume.
Maersk also warned that it expected a $200 million to $300 million bill - primarily in the third quarter - from a June cyber attack that disrupted its container shipping operations for weeks.
Skou said an increase in freight rates of 22 percent in the second quarter compared with a year earlier was driven by "good fundamentals" and less overcapacity as demand for moving containers at sea has outpaced the supply of new vessels.
"If you look at our second quarter results, they were driven by higher freight rates alone," Skou said, adding that he expects vessel overcapacity to fall further.
The company maintained its forecast for a rise in global demand for seaborne container transportation at 2 to 4 percent this year, but said it was now expected in the upper range.
Maersk's operating profit before depreciation and amortisation (EBITDA) of $2.06 billion was in line with the $2.05 billion forecast by analysts. (Reporting by Jacob Gronholt-Pedersen; editing by Edmund Blair and Alexander Smith)