- docker
- AWS credentials in ~/.aws/credentials
curl -L https://github.com/docker/machine/releases/download/v0.8.2/docker-machine-`uname -s`-`uname -m` >/usr/local/bin/docker-machine && \
> chmod +x /usr/local/bin/docker-machine
docker-machine version
Using the usual credentials file already present on the system
INSTANCE="aws-sandbox"
docker-machine create --driver amazonec2 --amazonec2-region us-west-2 ${INSTANCE}
Lot's of arguments to explore here
docker-machine ls
docker-machine ssh aws-sandbox whoami
docker-machine ip aws-sandbox
docker-machine inspect aws-sandbox
Copying files between machines (eg scripts, output files, etc).
$ cat foo.txt
cat: foo.txt: No such file or directory
$ docker-machine ssh dev pwd
/home/docker
$ docker-machine ssh dev 'echo A file created remotely! >foo.txt'
$ docker-machine scp dev:/home/docker/foo.txt .
foo.txt 100% 28 0.0KB/s 00:00
$ cat foo.txt
A file created remotely!
docker-machine stop aws-sandbox
docker-machine rm aws-sandbox