Docker Devbox Setup
Wiki Index
Create a devbox named aws-test
:
$ docker-machine create \
-d amazonec2 \
--amazonec2-region ap-south-1\
--amazonec2-instance-type "m5.large" \
--amazonec2-ssh-keypath ~/.ssh/id_rsa
aws-test
Point docker to the devbox:
$ eval (docker-machine env aws-test)
Regular SSH port-forwarding is disabled by default, so forward ports with:
$ docker-machine ssh aws-test -L 5555:localhost:5555 -L 8080:localhost:8080 (...)
Kafka needs HOST_IP
set to 0.0.0.0
in docker-compose.yml
When AWS credentials expire, you need to manually update ~/.docker/machine/machines/aws-test/config.json
and replace the access key, secret key, and session token.