How-to
Fixes that start with the command
Each guide opens with the exact command. Then it explains when that command is the right one, what it does underneath, and the variants you will actually reach for.
- How to Restart a Pod with kubectl (the Right Way)
kubectl rollout restart deployment/<deployment-name> - Docker HEALTHCHECK: Dockerfile and Compose Health Checks
docker inspect --format='{{json .State.Health}}' <container-name> - How to Restart a Docker Container (and When Restart Is Not Enough)
docker restart <container-name> - docker logs: Tail, Follow, Filter, and Save Container Logs
docker logs -f --tail 100 <container-name> - Docker Compose Rebuild: Force a Clean Build and Recreate
docker compose up -d --build - journalctl: Tail and Filter systemd Logs Like tail -f
journalctl -u <service-name> -f -n 100 - logrotate on Linux: Configuration, Testing, and Common Pitfalls
logrotate -d /etc/logrotate.d/myapp
Commands fix machines. Governance fixes teams. Swfte Nexus traces every command your AI agents run, and blocks the ones they should not.