Topic lessonTopic: Containers, ECS and Fargate
Container images and ECR: tags, digests and choosing what runs
A tag names a reference; a digest identifies content. ECR stores and distributes images, while services such as ECS execute them. Learn to identify the intended artifact without assuming a repeated tag means identical content or zero scan findings prove safety.
Separate build, distribution and execution, then align tags, digests, platform support and inspection scope.
An image packages application files for execution. This exercise uses a fictional registry and content A/B; it does not pull, build, push or run paid scans.
Separate building, storing and executing
- Source and inputs → Build artifactBuild an artifact from inputs
- Build artifact → Registry / ECRPublish approved content
- Registry / ECR → RuntimeRetrieve the content to execute
- Source and inputs
- Code, dependencies and build configuration
- Build artifact
- Build and inspect the image
- Registry / ECR
- Store and distribute images
- Runtime
- Retrieve and execute selected content
A registry stores images and related artifacts; a repository is a named store within it. Amazon Elastic Container Registry (ECR) supports private and public repositories, with different access considerations. Storing an image in ECR does not launch or update the application.
Align platform and object type when comparing digests
A manifest references image configuration and filesystem layers. A multi-platform index / manifest list references platform-specific manifests. The same index can lead to different Linux/amd64 and Linux/arm64 content.
| Teaching identifier | Meaning |
|---|---|
| Index M | References amd64 and arm64 alternatives. |
| Manifest A | Linux/amd64 content referenced by M. |
| Manifest B | Linux/arm64 content referenced by M. |
Different digests for M and A do not alone establish tampering. First align index versus platform manifest and OS/CPU selection. Pinning content also does not pin kernel behavior, external configuration, permissions or networking.
Read inspection results with their target, scope and time
| Check | How to read it |
|---|---|
| Target | Match the intended digest, including index/platform distinctions. |
| Scope | Basic covers OS vulnerabilities; Enhanced integrates with Inspector for OS and language packages. |
| Time and completion | Check completion and freshness; distinguish unscanned from zero findings. |
| Remaining judgement | Zero findings do not prove absence of unknown issues, application defects or unsafe configuration. |
A digest supports content comparison. Separately assess trusted provenance, required signatures or build records, embedded secrets, dependency updates and execution tests. Do not bake passwords or tokens into an image or use customer data for this exercise.
- Review provenance, build inputs and intended artifact.
- Record registry/repository, tag, digest and platform.
- Align inspection scope/time and execution tests with that artifact.
- Check runtime selection, deployment and recovery.
Practise identifying what is the same
Choose an option to see the result and explanation.
Check, then explain in your own words
- Separate I1’s tag change from execution X.
- Identify I2’s index and platform manifests.
- Review inspection scope/time, then study ECS configuration and execution.
Check your understanding: What should you align when identifying an image to execute?
Registry/repository, content digest, target platform, matching inspection results and runtime selection.
A tag alone need not fix content, and different digest objects or scan targets can be confused.
Sources and conditions checked
The official references used in this lesson are collected here with their scope, conditions and corresponding sections. Independent expert review and live AWS comparison have not been performed.
- Docker: what is an image?Checked:
Scope and conditionsImage files/layers versus execution; changed content produces a different artifact. Documentation review, not live AWS verification.
Used in this lessonSeparate building, storing and executing Read inspection results with their target, scope and time
- Amazon ECR overviewChecked:
Scope and conditionsImage storage/distribution versus application execution; private-repository permissions. Documentation review, not live AWS verification.
Used in this lessonSeparate building, storing and executing Practise identifying what is the same
- Docker image digestsChecked:
Scope and conditionsMutable tags versus content digests; not proof of zero unknown vulnerabilities or trusted authorship. Documentation review, not live AWS verification.
Used in this lessonDistinguish a repeated tag from identical content Align platform and object type when comparing digests Read inspection results with their target, scope and time Practise identifying what is the same
- Docker multi-platform buildsChecked:
Scope and conditionsOS/CPU compatibility and manifest/index selection; distinguish Linux host and desktop OS. Documentation review, not live AWS verification.
Used in this lessonDistinguish a repeated tag from identical content Align platform and object type when comparing digests Practise identifying what is the same
- Amazon ECS rolling deploymentsChecked:
Scope and conditionsService updates versus registration; conditional digest resolution is not automatic adoption of a new tag. Documentation review, not live AWS verification.
Used in this lessonDistinguish a repeated tag from identical content Read inspection results with their target, scope and time
- Amazon ECR image scanningChecked:
Scope and conditionsBasic/Enhanced scope, observation time and digest; zero findings are not zero unknown vulnerabilities. Documentation review, not live AWS verification.
Used in this lessonRead inspection results with their target, scope and time Practise identifying what is the same
- Docker Engine securityChecked:
Scope and conditionsNamespaces, cgroups, privileges, daemon and shared-host conditions. Documentation review, not live AWS verification.
Used in this lessonRead inspection results with their target, scope and time