SSH and TLS access to the Docker daemon
Worked example
This is an offline lesson. Data are fictional and Docker commands are unexecuted. Any optional execution requires an authorized disposable VM, a verified context, synthetic data, restricted access and no external transmission. Do not collect secrets or private output. Treat the worksheet as evidence to analyze, not a script to paste. Before any authorized observation confirm the actual endpoint, object identity, time window and output budget. Do not repair, restart or delete resources during this offline exercise.
Offline design only; domains are fictional.A: SSH to approved admin account; host key independently verified; socket access reviewed.B: TLS endpoint with trusted CA, matching server identity, authorized client certificate and restricted network.C: Unauthenticated TCP endpoint.D: TLS endpoint with valid server certificate but no approved client authority.Both A and B can be appropriate if configured and approved by the host owner. SSH relies on trusted host identity and an authorized remote user able to reach the daemon. Mutual TLS authenticates server and client with certificates; encryption alone does not enforce per-operation permissions. Apply network restrictions and authorization policy appropriate to the environment, protect private keys and revoke access when no longer needed. C is unacceptable. D may encrypt traffic but does not demonstrate that the client is permitted to administer the daemon. Review certificate expiry, trust roots, server name and SSH host-key changes through an independent channel. Do not open an endpoint or create credentials for this exercise. Daemon control is highly privileged. Authentication establishes identity, not a least-privilege operation policy. A server certificate alone does not establish client authorization; review the actual client trust policy without generating or exposing credentials.
Common mistake
Do not bypass certificate or host-key verification to fix a connection error.
Manual practice
Classify A–D and list the identity, authorization and credential lifecycle checks required before using A or B.
Worksheet: lab-fixtures/docker-engine-administration/03-secure-access/scenario.txt.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
SSH and TLS access to the Docker daemon — Knowledge check
Interpret synthetic administration evidence and choose safe maintenance decisions.
Does encryption alone grant administration authority?
What should happen after an unexpected SSH host-key change?
Which proposed endpoint must be rejected?