Operations / Topic 24 of 30

Containers and Platform Engineering

If the container restarts, what happens to its data?

Core exercise: 45–90 minutes · Self-paced · Synthetic data

Suggested prerequisites: Topic 06 · Topic 07 · Topic 22 · Topic 23

All topics · Read Markdown source

Understand the technology

An image packages an application and its dependencies; a container runs an instance with configured isolation and resources. Containers commonly share a host kernel, unlike a separate full guest OS. Persistent storage, secrets, network policy and image provenance still need design. Platform engineering creates supported paths for teams to deploy and operate services, rather than only assemble tooling.

By the end, you should be able to

  • Explain how the components below support the business need.
  • Complete the scoped exercise and compare expected with observed results.
  • Defend a decision using your own evidence and state its limitations.
Image and container
Reusable artifact versus running instance.
Ports and storage
Expose only required ports and persist intended data.
Orchestration
Desired state and health checks support operation.
Platform service
Provide repeatable workflows with ownership and guardrails.

See the connections

Conceptual sequence: Reviewed image, Runtime policy, Application instance, Persistent storage, Health and logs
A conceptual dependency sequence, not a literal network path. Explain each transition and identify the evidence needed.
1. Reviewed image

Locate Reviewed image in the scenario. Explain how it depends on the other stages, using the supporting technologies above. State what you would test before trusting its result.

In your diagram, label the owner, input, output and a possible failure at this stage.

2. Runtime policy

Locate Runtime policy in the scenario. Explain how it depends on the other stages, using the supporting technologies above. State what you would test before trusting its result.

In your diagram, label the owner, input, output and a possible failure at this stage.

3. Application instance

Locate Application instance in the scenario. Explain how it depends on the other stages, using the supporting technologies above. State what you would test before trusting its result.

In your diagram, label the owner, input, output and a possible failure at this stage.

4. Persistent storage

Locate Persistent storage in the scenario. Explain how it depends on the other stages, using the supporting technologies above. State what you would test before trusting its result.

In your diagram, label the owner, input, output and a possible failure at this stage.

5. Health and logs

Locate Health and logs in the scenario. Explain how it depends on the other stages, using the supporting technologies above. State what you would test before trusting its result.

In your diagram, label the owner, input, output and a possible failure at this stage.

Practice: If the container restarts, what happens to its data?

Choose your depth. Core: analyze the supplied synthetic material in a browser, text editor or spreadsheet; no paid cloud account is required. Technical extension: optional external tool, installation or account as stated below. Review tool requirements and current licensing first. For paper-only practice, walk through tool steps as a plan and label outcomes modeled; do not claim configuration or testing you did not perform. No production changes are authorized.

Northstar proposes a containerized portal. Its content is stored only inside the disposable container writable layer.

Supplied synthetic input

component,proposal
image,reviewed_sample
port,localhost_only
data,container_writable_layer
restart_policy,defined
backup,not_defined

Download synthetic input · Download worksheet

Procedure

  1. Distinguish the image, container, host and persistent data in a diagram.
  2. Identify which state must survive replacement and assign a volume or external store in the design.
  3. Write a health check that represents useful portal behavior, not process existence alone.
  4. Review an example configuration for privileged mode, unnecessary port exposure and embedded secrets.
  5. Plan replacement, backup and restore tests; record which require an installed runtime.
  6. Use the official Docker learning path for an optional isolated build and document cleanup.
Compare your reasoning and expected results

The proposal risks losing writable-layer data on replacement. A restart policy is not a backup. Persistent storage still needs access control and recovery evidence.

Optional technical extension

Follow the official local container tutorial with synthetic content. Review runtime licensing and machine requirements; do not expose a practice container to the public Internet.

External-tool procedures are reviewed instructions, not claims of execution in every listed environment. Record your actual tool version, observations and deviations. See the verification record.

Best practices to verify

  • Use maintained images and verify provenance.
  • Avoid privileged mode and run with restricted identity where supported.
  • Bind local practice services to localhost.
  • Test persistence, health and cleanup explicitly.

For each practice, specify an owner, a verification test and the evidence that would show failure.

Vendors, projects and tools

Representative examples, not a market ranking or endorsement
Vendor / projectWhat to investigateOfficial reference
DockerContainer learning and runtime exampleDocumentation / product site
Red HatPlatform and container documentationDocumentation / product site
KubernetesOpen-source orchestration projectDocumentation / product site

Selection criteria: fit to the requirement, support lifecycle, integration, security controls, learning access, licensing and total cost. Examples are not exhaustive. Commercial products may require paid licenses; community editions and free learning access do not imply free production use. No purchase is required for the core exercise.

Check your reasoning

A restart policy is sufficient backup protection.

Read the explanation

Restarting and restoring lost data are different capabilities. Verify independent recovery.

Turn practice into career evidence

Role families to investigate: Platform support engineer, Junior DevOps engineer, Container platform technician. These are search suggestions, not verified vacancies or a promise of job readiness. Requirements vary by employer.

  1. Search for these titles plus the supporting technologies in this lesson. Compare three current job descriptions and record repeated requirements.
  2. Map requirements to evidence you personally produced. Mark gaps honestly and plan one additional lab or supervised experience.
  3. Publish your original diagram, sanitized inputs, decisions and test record in your own repository after checking reuse rights. Link the relevant project in an application.
  4. Rehearse the interview question below, explaining what you did, what failed and how you verified the result.
How would you demonstrate that data survives application replacement?

Resume pattern: “Independent lab project: investigated containers and platform engineering, documented [your specific action], verified [your actual result], and identified [a limitation].” Replace placeholders truthfully; do not imply employment or production implementation.

Start here: build your GitHub portfolio

Your learning record

This form sends nothing to a server. Browser storage can be cleared, blocked or shared with other users of this browser. Download a copy you want to keep. Do not enter sensitive information.

Continue with primary sources

Reference review date: December 1, 2026. Follow current vendor instructions and verify licensing before optional tool use. Product links establish context, not independent performance rankings.