Interview Question - CloudScope/DevOpsWithCloudScope GitHub Wiki
Docker
Container Issues
-
A container is running but not responding to requests. How do you troubleshoot the issue?
-
How do you debug a container that keeps restarting in a loop?
-
A container exits immediately after starting. What steps would you take to diagnose the problem?
-
How do you investigate high CPU or memory usage in a Docker container?
-
A container is running but logs are empty. How do you debug it?
Networking Issues
-
A container cannot communicate with another container in the same network. How do you troubleshoot?
-
Your application inside a container cannot access the internet. How do you fix it?
-
How do you diagnose and resolve a port binding conflict in Docker?
-
A containerized service is accessible from inside the host but not from external clients. How would you debug this issue?
-
How do you troubleshoot DNS resolution issues inside a Docker container?
Image and Build Issues
-
Your Docker image build is failing. How do you troubleshoot and fix it?
-
A container is running with an old version of an image even after pulling the latest version. How do you resolve this?
-
How do you reduce the size of a Docker image that has grown too large?
-
You are getting a “no space left on device” error when building an image. How do you troubleshoot this?
-
How do you fix a broken multi-stage Docker build?
Storage and Volume Issues
-
A container cannot read or write data to a mounted volume. How do you debug the issue?
-
Your persistent volume is not retaining data after the container restarts. How do you troubleshoot it?
-
Docker Daemon and System Issues
-
The Docker daemon is not starting. How do you troubleshoot and restart it?
-
You see "Docker permission denied" errors when running commands as a non-root user. How do you fix this?
-
The Docker daemon is consuming too much system memory. How do you diagnose and optimize resource usage?