common/docker: made functions into methods on docker struct

naming consistency in skeleton main and orchestrator main files