Home

Docker EC2

Steps

  1. Deploy an EC2 Instance
  2. Install Docker onto that instance
  3. Create SSH Key
  4. Add that the key to Github
  5. Git pull using that key
  6. Docker build

Installing Docker onto EC2 Github: Generating SSH Keys

Useful Commands

  • docker build . -t='dok/name:latest'
  • docker run -p 80:80 -d -t dok/name:latest

Repository

https://github.com/okeeffed/developer-notes-nextjs/content/docker/docker-ec2

Sections


Related