Interview Prep/Docker/Resources, health checks, logging and restarts

Container's DNS or hostname weirdness after `docker update`/network change: `docker update` doesn't change network.

BeginnerTroubleshootingResources, health checks, logging and restarts
Answer

Likely causes → docker update only changes resources and restart policy, not networks, ports or env.

Diagnose → docker update --help.

Fix → docker network connect/disconnect for networks; recreate the container for ports/env.

Prevent → Treat containers as immutable; change config in Compose and recreate.

All Docker questions Roadmap: Docker & containers

More on Resources, health checks, logging and restarts