amazon.rst 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. Amazon EC2
  2. ==========
  3. Installation
  4. ------------
  5. Install vagrant from http://www.vagrantup.com/ (or use your package manager)
  6. clone the repo
  7. Docker can be installed with Vagrant on Amazon EC2, using Vagrant 1.1 is required for EC2, but deploying is as simple as:
  8. ::
  9. $ export AWS_ACCESS_KEY_ID=xxx \
  10. AWS_SECRET_ACCESS_KEY=xxx \
  11. AWS_KEYPAIR_NAME=xxx \
  12. AWS_SSH_PRIVKEY=xxx
  13. ::
  14. $ vagrant plugin install vagrant-aws
  15. ::
  16. $ vagrant up --provider=aws
  17. The environment variables are:
  18. * ``AWS_ACCESS_KEY_ID`` - The API key used to make requests to AWS
  19. * ``AWS_SECRET_ACCESS_KEY`` - The secret key to make AWS API requests
  20. * ``AWS_KEYPAIR_NAME`` - The ID of the keypair used for this EC2 instance
  21. * ``AWS_SSH_PRIVKEY`` - The path to the private key for the named keypair
  22. Make sure your default security zone on AWS includes rights to SSH to your container. Otherwise access will
  23. fail silently.
  24. .. code-block:: bash
  25. vagrant ssh
  26. Now you are in the VM, run docker
  27. .. code-block:: bash
  28. docker
  29. Continue with the :ref:`hello_world` example.