Standard

Docker, Docker Hub, GitHub Actions, and AWS EC2

195 Lectures 39 Quizzes Beginner 8h 30m 2,000 Rs
Docker, Docker Hub, GitHub Actions, and AWS EC2

About this Course

Eliminate the "it works on my machine" problem with Docker containerization. Learn to write efficient Dockerfiles, build lean multi-stage images, orchestrate multi-container stacks with Docker Compose, and publish images to Docker Hub. Automate deployment pipelines with GitHub Actions and deploy production-ready containerized workloads onto AWS EC2 cloud servers.

In this Course You'll Learn

Docker Container Fundamentals & Image Optimization

  • Container Architecture: Understand images, containers, and namespaces, running isolated applications across consistent developer environments.
  • Dockerfile Best Practices: Write efficient container instructions, configure non-root users, and select minimal base images like Alpine.
  • Multi-Stage Builds: Separate build tools from production runtimes to drastically reduce container artifact sizes and security vulnerabilities.
  • Storage Volumes & Networking: Configure persistent volumes for database data and create isolated bridge networks for inter-container communication.

Multi-Service Orchestration with Docker Compose

  • Declarative Service Stacks: Define full-stack web applications, databases, and caching layers within clean docker-compose.yml manifests.
  • Environment Management: Manage configuration variables, container dependencies, restart policies, and health check validation.
  • Local Hot-Reloading: Mount host development directories into live containers to enable instant hot-reloading while retaining container isolation.
  • CLI Lifecycle Management: Master Docker commands to inspect container logs, scale running replicas, monitor performance, and clean resources.

CI/CD Automation with GitHub Actions & AWS EC2

  • Automated CI/CD Pipelines: Build, test, and tag container images automatically upon code pushes and pull requests using GitHub Actions.
  • Docker Hub Registry: Publish tagged semantic releases and multi-architecture images securely to private and public Docker Hub repositories.
  • AWS EC2 Server Provisioning: Configure virtual Ubuntu servers on AWS, configuring security group ingress rules, SSH keys, and Docker Engine.
  • Zero-Downtime Deployment: Automate SSH deployment pipelines that pull fresh containers, cycle services smoothly, and clean dangling images.

Course Curriculum

Section 1: Why Containers Exist

  • The "Works on My Machine" Problem Free Preview
  • Virtual Machines vs Containers Free Preview
  • Images and Containers Free Preview
  • How Docker Is Used at Work Free Preview
  • Tour of the Course Project Free Preview
  • Quiz - Why Containers Exist Free Preview

Section 2: Installing and Verifying Docker

  • Installing Docker Desktop on Windows and macOS Free Preview
  • Installing Docker Engine on Linux Free Preview
  • Checking the Installation Free Preview
  • Running hello-world Free Preview
  • Common Installation Problems Free Preview
  • Quiz - Installing and Verifying Docker Free Preview

Section 3: Writing Your First Dockerfile

  • What a Dockerfile Is
  • Creating the orders-api App
  • Writing the Dockerfile
  • Building the Image
  • Running Your Image
  • Quiz - Writing Your First Dockerfile

Section 4: Running Containers and Managing Them

  • Running a Container
  • Running in the Background
  • Stopping, Starting, and Restarting
  • Naming Containers
  • Removing Containers
  • Quiz - Running Containers and Managing Them

Section 5: Images and Image Layers

  • What an Image Is Made Of
  • Listing and Pulling Images
  • Image Tags
  • Looking Inside an Image
  • Cleaning Old Images
  • Quiz - Images and Image Layers