From the course: Complete Guide to AWS Software Deployment

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Deploy Docker containers via AWS Elastic Beanstalk

Deploy Docker containers via AWS Elastic Beanstalk - Amazon Web Services (AWS) Tutorial

From the course: Complete Guide to AWS Software Deployment

Deploy Docker containers via AWS Elastic Beanstalk

- [Instructor] All right, so I said that in this video, we would be doing the teardown and cleaning up all the resources we made, and if you want that, that's the next video. But I just want to stop and show you something that I alluded to earlier, which is deploying Docker on Beanstalk. So if you go back to the GitHub, you'll see there's a repo called nginx_docker. It's a very simple repository, just a couple files you can see right here. There's a Dockerfile, a pretty short one. It loads from nginx:alpine, copies in the index.html, and then opens up port 80. And the README gives you two steps to run this locally. So it might be easier to read on GitHub, but two lines here, the docker build, we can run. And then I'll start a very quick docker build and docker run to run that container. And now that this is up and running, if we go back to the browser and go to localhost, we can see that index file is being served up through Nginx. So, now we have an image that we can deploy to be in…

Contents