Let me introduce you to 12" hydraulic bolt cutters. They cut through the toughest bike U-locks. No lock survives them. If the lock is stronger, there are stronger hydraulic cutters. Containers tend to be protected by puck-style locks. There are specialized hydraulic tools for defeating those also. There are also, of course, blowtorches.
The only solution is armed escort for trains through slow zones.