docker: added method to execute newContainer with deploy cmds.
docker: extract commandToRun from newContainer.