Environmental campaigners have targeted Shell petrol stations in Edinburgh and London over the company's plans to drill for oil in the Arctic.
Shell is due to begin drilling at two offshore sites in the Alaskan Arctic in the coming weeks.
Lothian and Borders Police confirmed five people suspected of committing public-order offences had been arrested at the Shell station on Dalry Road.
A spokesman said protests were also under way at Shell petrol stations in the Seafield and Maybury areas of the city.
A Greenpeace spokesman said the five arrested had been chained to the petrol pumps. A further two remained on the roof, the spokesman added.
A spokesman for Shell said: "Shell recognises that certain organisations are opposed to our exploration programme Offshore Alaska, and we respect the right of individuals and organisations to engage in a free and frank exchange of views about our operations.
"Recognising the right of individuals to express their point of view, we only ask that they do so with their safety and the safety of others, including the general public and Shell personnel, in mind."