Ravindra BagaleCourses & study guides मराठी

Ravi Sir's Cards › DevOps

Chapter 56: Docker CI/CD with Jenkins and ECR, Deploy to Amazon ECS, Troubleshooting, Best Practices and Interview Questions: Cards

मराठी cards · Open the chapter

Revision cards

Jenkins pipeline: build and push to ECR. Manual image builds are slow and risky.
Revision card 1 of 7: Jenkins pipeline: build and push to ECR · Download PNG · Open card page

Lesson: 56.1 CI/CD: Jenkins pipeline that builds, scans and pushes to ECR

Deploy to ECS Fargate. Managing EC2 hosts for containers is extra work.
Revision card 2 of 7: Deploy to ECS Fargate · Download PNG · Open card page

Lesson: 56.2 Deploy containers to Amazon ECS with Fargate

Troubleshooting containers. Most container problems follow a few patterns.
Revision card 3 of 7: Troubleshooting containers · Download PNG · Open card page

Lesson: 56.3 Docker troubleshooting playbook

Image size optimization case study. Big images slow every deploy and scale-out.
Revision card 4 of 7: Image size optimization case study · Download PNG · Open card page

Lesson: 56.4 Image size optimisation checklist

Docker best practices checklist. A checklist catches problems before users do.
Revision card 5 of 7: Docker best practices checklist · Download PNG · Open card page

Lesson: 56.5 Docker best practices checklist

Docker CLI master reference. One map of the CLI makes every command easy to find.
Revision card 6 of 7: Docker CLI master reference · Download PNG · Open card page

Lesson: 56.6 Complete Docker CLI reference: every top-level command

Docker interview questions. Interviews test clear basics plus real stories.
Revision card 7 of 7: Docker interview questions · Download PNG · Open card page

Lesson: 56.7 Docker interview questions with answers

Interview cards

How does your pipeline push images to ECR? Agent has an IAM role; pipeline runs get-login-password | docker login --password-stdin, tags with GIT_COMMIT, pushes.
Interview card 1 of 7: How does your pipeline push images to ECR? · Download PNG · Open card page

Lesson: 56.1 CI/CD: Jenkins pipeline that builds, scans and pushes to ECR

How do you roll out a new image on ECS? Register a new task definition revision with the new image, then update-service; ECS replaces tasks gradually using health checks.
Interview card 2 of 7: How do you roll out a new image on ECS? · Download PNG · Open card page

Lesson: 56.2 Deploy containers to Amazon ECS with Fargate

A container exits right after start. Steps? docker ps -a for the exit code, docker logs for the error, inspect for State and OOMKilled, then run it with --entrypoint sh to check.
Interview card 3 of 7: A container exits right after start. Steps? · Download PNG · Open card page

Lesson: 56.3 Docker troubleshooting playbook

Walk me through shrinking an image. Measure layers with history, switch to slim/distroless, add multi-stage, install prod deps only, clean in the same RUN, fix .dockerignore.
Interview card 4 of 7: Walk me through shrinking an image. · Download PNG · Open card page

Lesson: 56.4 Image size optimisation checklist

Give your top Docker best practices. Pin versions, multi-stage small images, non-root USER, no secrets in layers, healthchecks, limits, logs to stdout, scan in CI, one process per container.
Interview card 5 of 7: Give your top Docker best practices. · Download PNG · Open card page

Lesson: 56.5 Docker best practices checklist

How do you see what uses disk in Docker? docker system df (add -v for detail); clean with docker system prune carefully.
Interview card 6 of 7: How do you see what uses disk in Docker? · Download PNG · Open card page

Lesson: 56.6 Complete Docker CLI reference: every top-level command

Container vs virtual machine? A VM virtualizes hardware and runs its own OS kernel. A container shares the host kernel and isolates processes with namespaces and cgroups, so it starts in seconds.
Interview card 7 of 7: Container vs virtual machine? · Download PNG · Open card page

Lesson: 56.7 Docker interview questions with answers

Comparison cards

Virtual machine vs Container. VM: full OS on a hypervisor.Container: isolated processes on a shared kernel.
Comparison card 1 of 3: Virtual machine vs Container · Download PNG · Open card page

Lesson: 56.7 Docker interview questions with answers

ECS Fargate vs Docker Compose. Compose: runs services on one host.ECS Fargate: managed AWS service, no servers.
Comparison card 2 of 3: ECS Fargate vs Docker Compose · Download PNG · Open card page

Lesson: 56.2 Deploy containers to Amazon ECS with Fargate

Exit 137 vs Exit 143. 137: killed by SIGKILL.143: stopped by SIGTERM.
Comparison card 3 of 3: Exit 137 vs Exit 143 · Download PNG · Open card page

Lesson: 56.3 Docker troubleshooting playbook