Deploy docker image to Amazon AWS (free for 12months) in half an hour for beginners

After success registration in AWS you can start using it.

1. Create secret keys ...
2. Create "EC2 Container Service"
  • In "Repositories" create your new repository. When you create it you will get commands for docker and was for your repository - click "View push command" (sample code)
3. Install AWS client in local computer. There you must have docker installed to.
4. Run docker client (local computer). In cmd run:
  • $ aws configure (you enter credentials from Access keys ...)
  • $ aws ecr get-login --no-include-email --region eu-central-1  (you use your location, look in your sample for running)
  • You run what you will get in response like: docker login -u AWS -p eyJwY................
  • $ docker tag ???your local image???:latest ????your amazon image look in sample code???:latest (take code from sample code)
  • $ docker push ????your amazon image look in sample code???:latest

And the image is in CLOUD now you can run it and test it....

Comments

Popular posts from this blog

Connecting to running docker image AWS Amazon

Running docker image on Amazon AWS