Docker & Containers
Registry authentication
Explain how docker login stores registry credentials per host, why a rotated token breaks some runners, and how to pass a token without leaving it in shell history.
What you will be able to do
- Explain how Docker chooses a saved credential by registry host.
- Decide where a CI token should live and how each job logs in and out.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Docker & Containers
- Bridge interfacesAdvanced · 4 min
Explain what docker0 and user-defined bridges are, how veth pairs attach containers to them, and where host routes and firewall rules can break container traffic.
- DNS in containersAdvanced · 4 min
Explain how containers find other containers by name through embedded DNS on user-defined networks, and why the default bridge and loopback resolvers behave differently…
- Image signingAdvanced · 4 min
Explain what Docker Content Trust checks at pull time, why a valid signature is not proof of safety, and why deploys should record a digest.
- SBOM generationAdvanced · 4 min
Explain what an SBOM lists, how BuildKit attaches one to an image as an SPDX attestation, and how to check that it describes the image you deploy.
- Vulnerability scanningAdvanced · 4 min
Explain how a vulnerability scanner matches an image's SBOM against a database, why a clean scan is not proof of safety, and how to read findings with their fixes.
- Volumes and bind mountsAdvanced · 4 min
Explain why a container's writable layer is lost with the container, how named volumes and bind mounts keep data, and how to choose between them.