move volume management out of docker files