memory_docker: properly fail without docker-py.

fixes #582