Why not do something like

```ruby
path.readlines.any? { |l| l.split(":")[2].to_s.start_with? '/docker/' }
```