simplify docker integration code and remove command pattern calls

Where is onstart being used?