I’m on osx and used docker-machine to create a virtualbox host. When I run this it works as I’d expect:
docker -it run -v $(pwd):/backup debian /bin/bash
That puts me into the shell inside the container and I can cd into
/backup and see the contents of the directory of the osx host terminal.
I also used docker-machine to create a aws ec2 host. When I run the same command against aws, and cd into
/backup, I don’t see the contents of the directory of my macbook.
ls /backup appears empty in the container running in aws.
Shouldn’t this work the same way on aws as it does with virtualbox? Or maybe there’s some extra magic setup on virtualbox?
I noticed that aws is using an ubuntu amazon image whereas virutalbox is running a boot2docker image. Maybe boot2docker virtualbox has something special configured?