In this exercise, you will take on the role of a DevOps engineer tasked with diagnosing and fixing a Docker container that fails to start or behave as expected. This exercise will help you enhance your troubleshooting skills, which are crucial for maintaining stable and reliable applications in production environments.
We are using the same todo app from previous exercises and some intern did some changes which is resulting in broken container. The container has been published to the repository. Your task is to identify the issues causing the container to fail and resolve them.
Please complete previous exercises before proceeding. It uses the same application and you might need to run the container of that application.
To successfully complete this exercise, you need to:
Resources
section.Pull the Docker Image: Start by pulling the provided Docker image using the following command:
docker pull tdevsin/broken-todo-app
Run the Container: Attempt to run the container. Note that the container is expected to fail.
Check the Logs: Use the docker logs
command to inspect the container's output and identify any error messages. Carefully look at the logs, you may find something.
Inspect the Container: Use docker inspect
to review the container’s settings and configurations.