A second man has been arrested over Friday's bomb attack on a London underground train that injured 30 people, the police said on Sunday, as Britain remained on its highest level of alert with soldiers helping provide security.

The 21-year-old man was detained under Britain's Terrorism Act in the west London suburb of Hounslow just before midnight on Saturday, the Metropolitan Police said in a statement.

The police arrested an 18-year-old man in the port of Dover earlier on Saturday and then raided a property in Sunbury, a town near London and about 6 km from Hounslow.

London
An injured woman is led away after a blast at Parsons Green underground station in London.Reuters

The homemade bomb shot flames through a train carriage packed with commuters at west London's Parsons Green Tube station but apparently failed to detonate fully.

The Islamic State group claimed responsibility as it has for other attacks in Britain this year, including two in London and one at a concert by American singer Ariana Grande in Manchester in May.

Intelligence officials say there is scant evidence the militant group was behind the attacks.

Prime Minister Theresa May put Britain on its highest security level of "critical" late on Friday, meaning another attack might be imminent. Soldiers and armed police were deployed to strategic locations such as nuclear power plants.

The first man arrested on Saturday was detained in the departure lounge of the port of Dover in what police said was a "very significant" step.

London train blast
Emergency services outside Parsons GreenReuters

The last time Britain was put on "critical" alert was after a suicide bomber killed 22 people at the Ariana Grande concert.

On that occasion, the threat level remained at the highest setting for four days while the police raced to establish if the bomber had worked alone or with the help of others. Prior to that it had not been triggered since 2007.