Wiki workshop · Αγγλικά

Example Documentation: Configure registry hosts

hosts.toml for registry mirrors and pull/resolve capabilities is reviewed.

Παραδείγματα workshop σε ZIP
Πρόοδος μάθησης στη web app

Σημειώστε κεφάλαια ως αναγνωσμένα, δείτε την πρόοδο ανάγνωσης και ολοκληρώστε πρακτικές ενότητες αφού ενεργοποιήσετε την προαιρετική web app. Η πρόοδος του workshop υπολογίζεται από τα κεφάλαια όλων των σελίδων τεκμηρίωσης. Οι επιλογές μένουν σε αυτή τη συσκευή· δεν υπάρχει λογαριασμός ή συγχρονισμός με server. Δεν απαιτείται εγκατάσταση. Η ανάκληση στις Ρυθμίσεις απορρήτου διαγράφει την πρόοδο.

Πρόοδος ανάγνωσης0%
0%
0 / 12 κεφάλαια που διαβάστηκαν

Δεν υπάρχει ακόμη ελληνική έκδοση αυτού του εγγράφου. Το περιεχόμενο εμφανίζεται στα αγγλικά.

Άλλη γλωσσική έκδοσηΓερμανικά ↗Ελληνικά ↗

Example Documentation: Configure registry hosts

1. Goal

hosts.toml for registry mirrors and pull/resolve capabilities is reviewed.

01 / 12

2. What is done

The example creates local evidence below work/, validates artifacts and collects optional runtime output when the tools are installed. It remains safe to run even when containerd is not running as a service.

02 / 12

3. Why it is done

containerd problems often come from mixing layers: Docker workflow, containerd API, CRI, OCI, CNI and Kubernetes have different responsibilities. This example makes the relevant boundary visible.

03 / 12

4. Typical commands

bash
containerd --version 2>/dev/null || true
ctr version 2>/dev/null || true
ctr plugins ls 2>/dev/null || true
ctr namespaces ls 2>/dev/null || true
ctr -n k8s.io images ls 2>/dev/null || true
journalctl -u containerd -n 50 --no-pager 2>/dev/null || true
04 / 12

5. Verify success

  • Artifacts are syntactically valid.
  • Evidence exists below work/evidence/.
  • No real secrets are used.
  • Scope is clear: model, local host or Kubernetes node.
  • Risks and cleanup are traceable.
05 / 12

6. Common mistakes

  • wrong namespace in ctr.
  • crictl without matching runtime endpoint.
  • registry hosts in the wrong host namespace.
  • TOML for the wrong containerd major version.
  • snapshotter or RuntimeClass configured while the runtime is missing on the node.
06 / 12

7. Security aspects

containerd often runs very close to the host. Runtime changes can affect all pods on a node. Configuration changes are therefore reviewed as models before being transferred to real nodes.

07 / 12

8. Realistic use

This example transfers to node runbooks, platform reviews, Kubernetes troubleshooting, registry incident analysis and security hardening.

08 / 12

9. Workshop flow

  1. Read the goal.
  2. Open artifacts.
  3. Run run.sh.
  4. Inspect evidence.
  5. Name the affected runtime layer.
  6. Write down risk.
  7. Document cleanup.
  8. Review the result with a second person.
09 / 12

10. Review matrix

Review field Expectation
Layer Host, containerd, CRI, OCI, CNI or Kubernetes is named.
Artifact TOML, YAML, JSON, shell or log exists.
Security No production credentials or endpoints.
Operations Rollback or cleanup is described.
Evidence Proof is reproducible.
10 / 12

Official References

  • containerd documentation: https://containerd.io/docs/2.3/getting-started/
  • containerd registry configuration: https://github.com/containerd/containerd/blob/main/docs/hosts.md
  • containerd runtime v2: https://github.com/containerd/containerd/blob/main/docs/runtime-v2.md
  • Kubernetes container runtimes: https://kubernetes.io/docs/setup/production-environment/container-runtimes/
  • Kubernetes CRI: https://kubernetes.io/docs/concepts/containers/cri/
  • OCI Image Specification: https://github.com/opencontainers/image-spec
  • OCI Runtime Specification: https://github.com/opencontainers/runtime-spec

11 / 12

Example Appendix: Evidence, Operations and Transfer

This appendix makes the example complete as a training component. It describes how a local model becomes reliable runtime analysis without touching production nodes or credentials.

B.1 Define scope

Define scope is needed here because containerd labs can otherwise drift from a safe model into uncontrolled node changes. The assessment must state whether an artifact only explains, validates locally or would be applied on a real node.

Question Expectation
What is affected? Host, daemon, plugin, content, snapshotter, runtime, CRI, CNI or Kubernetes is named.
What is proven? A file or output below work/evidence/ shows the finding.
What remains open? Requirements for real nodes are documented as boundary.

Review points:

  • no production secrets
  • no unreviewed socket or systemd changes
  • no registry exceptions without justification
  • no confusion between ctr, crictl and nerdctl
  • cleanup possible by removing work/

B.2 Validate artifacts

Validate artifacts is needed here because containerd labs can otherwise drift from a safe model into uncontrolled node changes. The assessment must state whether an artifact only explains, validates locally or would be applied on a real node.

Question Expectation
What is affected? Host, daemon, plugin, content, snapshotter, runtime, CRI, CNI or Kubernetes is named.
What is proven? A file or output below work/evidence/ shows the finding.
What remains open? Requirements for real nodes are documented as boundary.

Review points:

  • no production secrets
  • no unreviewed socket or systemd changes
  • no registry exceptions without justification
  • no confusion between ctr, crictl and nerdctl
  • cleanup possible by removing work/

B.3 Name runtime layer

Name runtime layer is needed here because containerd labs can otherwise drift from a safe model into uncontrolled node changes. The assessment must state whether an artifact only explains, validates locally or would be applied on a real node.

Question Expectation
What is affected? Host, daemon, plugin, content, snapshotter, runtime, CRI, CNI or Kubernetes is named.
What is proven? A file or output below work/evidence/ shows the finding.
What remains open? Requirements for real nodes are documented as boundary.

Review points:

  • no production secrets
  • no unreviewed socket or systemd changes
  • no registry exceptions without justification
  • no confusion between ctr, crictl and nerdctl
  • cleanup possible by removing work/

B.4 Check Kubernetes relation

Check Kubernetes relation is needed here because containerd labs can otherwise drift from a safe model into uncontrolled node changes. The assessment must state whether an artifact only explains, validates locally or would be applied on a real node.

Question Expectation
What is affected? Host, daemon, plugin, content, snapshotter, runtime, CRI, CNI or Kubernetes is named.
What is proven? A file or output below work/evidence/ shows the finding.
What remains open? Requirements for real nodes are documented as boundary.

Review points:

  • no production secrets
  • no unreviewed socket or systemd changes
  • no registry exceptions without justification
  • no confusion between ctr, crictl and nerdctl
  • cleanup possible by removing work/

B.5 Record security boundaries

Record security boundaries is needed here because containerd labs can otherwise drift from a safe model into uncontrolled node changes. The assessment must state whether an artifact only explains, validates locally or would be applied on a real node.

Question Expectation
What is affected? Host, daemon, plugin, content, snapshotter, runtime, CRI, CNI or Kubernetes is named.
What is proven? A file or output below work/evidence/ shows the finding.
What remains open? Requirements for real nodes are documented as boundary.

Review points:

  • no production secrets
  • no unreviewed socket or systemd changes
  • no registry exceptions without justification
  • no confusion between ctr, crictl and nerdctl
  • cleanup possible by removing work/

B.6 Write rollback

Write rollback is needed here because containerd labs can otherwise drift from a safe model into uncontrolled node changes. The assessment must state whether an artifact only explains, validates locally or would be applied on a real node.

Question Expectation
What is affected? Host, daemon, plugin, content, snapshotter, runtime, CRI, CNI or Kubernetes is named.
What is proven? A file or output below work/evidence/ shows the finding.
What remains open? Requirements for real nodes are documented as boundary.

Review points:

  • no production secrets
  • no unreviewed socket or systemd changes
  • no registry exceptions without justification
  • no confusion between ctr, crictl and nerdctl
  • cleanup possible by removing work/

B.7 Clean evidence

Clean evidence is needed here because containerd labs can otherwise drift from a safe model into uncontrolled node changes. The assessment must state whether an artifact only explains, validates locally or would be applied on a real node.

Question Expectation
What is affected? Host, daemon, plugin, content, snapshotter, runtime, CRI, CNI or Kubernetes is named.
What is proven? A file or output below work/evidence/ shows the finding.
What remains open? Requirements for real nodes are documented as boundary.

Review points:

  • no production secrets
  • no unreviewed socket or systemd changes
  • no registry exceptions without justification
  • no confusion between ctr, crictl and nerdctl
  • cleanup possible by removing work/

B.8 Limit transfer

Limit transfer is needed here because containerd labs can otherwise drift from a safe model into uncontrolled node changes. The assessment must state whether an artifact only explains, validates locally or would be applied on a real node.

Question Expectation
What is affected? Host, daemon, plugin, content, snapshotter, runtime, CRI, CNI or Kubernetes is named.
What is proven? A file or output below work/evidence/ shows the finding.
What remains open? Requirements for real nodes are documented as boundary.

Review points:

  • no production secrets
  • no unreviewed socket or systemd changes
  • no registry exceptions without justification
  • no confusion between ctr, crictl and nerdctl
  • cleanup possible by removing work/

B.9 Complete review

Complete review is needed here because containerd labs can otherwise drift from a safe model into uncontrolled node changes. The assessment must state whether an artifact only explains, validates locally or would be applied on a real node.

Question Expectation
What is affected? Host, daemon, plugin, content, snapshotter, runtime, CRI, CNI or Kubernetes is named.
What is proven? A file or output below work/evidence/ shows the finding.
What remains open? Requirements for real nodes are documented as boundary.

Review points:

  • no production secrets
  • no unreviewed socket or systemd changes
  • no registry exceptions without justification
  • no confusion between ctr, crictl and nerdctl
  • cleanup possible by removing work/

B.10 Run cleanup

Run cleanup is needed here because containerd labs can otherwise drift from a safe model into uncontrolled node changes. The assessment must state whether an artifact only explains, validates locally or would be applied on a real node.

Question Expectation
What is affected? Host, daemon, plugin, content, snapshotter, runtime, CRI, CNI or Kubernetes is named.
What is proven? A file or output below work/evidence/ shows the finding.
What remains open? Requirements for real nodes are documented as boundary.

Review points:

  • no production secrets
  • no unreviewed socket or systemd changes
  • no registry exceptions without justification
  • no confusion between ctr, crictl and nerdctl
  • cleanup possible by removing work/

B.11 Completion

An example is complete when the script runs successfully, all model artifacts are syntactically valid, the affected runtime layer is named and evidence contains no confidential data.

12 / 12

CTR · Orthevs Academy

31 modules ως ενιαία διαδρομή μάθησης.

Η σειρά παραμένει αμετάβλητη: από τη βασική δομή του lab μέσω τεχνικών θεμελίων και λειτουργικών μοντέλων έως το τελικό troubleshooting. Τα τεχνικά ονόματα καταλόγων διατηρούνται σκόπιμα.

Orthevs – Η μηχανική ως βάση για όσα ακολουθούν.

Το Orthevs ως εφαρμογή

Εγκατάσταση του Orthevs

Η web app του Orthevs μπορεί να εγκατασταθεί σε υποστηριζόμενες κινητές συσκευές και browsers υπολογιστή.

iPhone και iPad

Ανοίξτε το Orthevs στο Safari. Πατήστε Κοινή χρήση και μετά Προσθήκη στην οθόνη αφετηρίας. Ενεργοποιήστε το Άνοιγμα ως web app, αν εμφανίζεται, και πατήστε Προσθήκη.

Android

Για τη web app, ανοίξτε το μενού του browser και επιλέξτε Εγκατάσταση εφαρμογής ή Προσθήκη στην αρχική οθόνη. Επιβεβαιώστε την εγκατάσταση.

Browser υπολογιστή

Ανοίξτε το μενού του browser ή το εικονίδιο εγκατάστασης στη γραμμή διευθύνσεων και επιλέξτε Εγκατάσταση εφαρμογής ή Προσθήκη στο Dock.

Η εγκατάσταση της web app εξαρτάται από τον browser. Αν δεν εμφανιστεί διάλογος εγκατάστασης, ακολουθήστε τα βήματα του browser που αναφέρονται παραπάνω.