Docker in docker not mounting volumes

Ah, to answer my own question, I found the answer from elsewhere:

Volume mounts will not work on the docker executor because the Docker host running your container is different from the Docker host that you’re controlling with docker-compose. Remote volume mounting isn’t possible with our setup, but you can get volume mounting with the machine executor.