Docker/AWS Elastic Beanstalk
< Docker
AWS has multiple services for running Docker containers. This example shows how to run a single instance Docker container using AWS Elastic Beanstalk.
Readings
editMultimedia
editActivities
edit- Complete the following tutorial.
- Create a Docker application.
- Create a local Docker application using the examples from one of the programming languages in this learning project.
- Create a .zip file that contains the
Dockerfile
and the application file (for example:app.py
for Python). Be careful to select and zip the two files rather than the containing folder.
- Deploy the Docker application to AWS Elastic Beanstalk.
- Navigate to the AWS: Elastic Beanstalk Console. No environments should exist yet.
- Select
Create Application
. - Name the application
Hello
. - Select
Docker
as the platform. - Select
Upload your code
. - Choose the Docker application zip file created above.
- Very Important: To avoid default options and reduce overall costs: Select
Configure more options
. View the available options. - Select
Create app
.
- Test the Docker application.
- When the app is running, navigate to the app website to test the deployment.
- Clean up.
- When you have finished testing the application, use Environment Actions to terminate the environment.
- Use Application Actions to delete the application.