move docker code to separate module