move docker stuff to docker.py