Docker and CI/CD
Package an application so it runs the same everywhere, then automate the whole path to production.
About this track
The middle rung of the DevOps path, for someone who can already use a shell, Git and a server. You will package an application into a container so that "it works on my machine" stops being a sentence anyone needs to say, run it next to its database with Compose, push it to a registry, and build a pipeline that tests every push and deploys the ones that pass. It finishes with infrastructure as code and the three release strategies that let you ship without taking the site down. Work through the lessons in order, then take the exam to earn your certificate.
Every lesson is written and hosted here on Yanjye — you never leave the site. Work through them in order, then sit the exam to earn your certificate.
Create a free account or log in to track your progress and earn the certificate.
Lessons
-
1
Why containers exist
The problem Docker solves, and how it differs from a virtual machine.
-
2
Your first Dockerfile
Describe how to build your application, once, in a file anyone can run.
-
3
Layers, caching and builds that are not slow
Why instruction order decides whether a build takes four seconds or four minutes.
-
4
Compose: an application and its database
Describe a whole environment in one file and start it with one command.
-
5
Volumes: where the data actually lives
Containers are disposable. Your data is not.
-
6
Networking and ports
What is reachable from where, and what should not be reachable at all.
-
7
Registries: shipping the image somewhere
Build once, tag properly, and deploy exactly what you tested.
-
8
Your first pipeline: build and test on every push
Hand your checklist to a machine that never forgets a step.
-
9
Making the pipeline deploy
From a passing build to running code, with a way back.
-
10
Infrastructure as code
Describe your servers in a file so they can be rebuilt, reviewed and destroyed.
-
11
Releasing without downtime
Rolling, blue-green and canary — and the database rules that make them work.
-
12
What you can now do, and what comes next
Consolidating the middle rung, and an honest look at the expert track.