simplify docker integration code and remove command pattern calls