From the course: Docker: Build and Optimize Docker Images
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Challenge: Debugging Docker images - Docker Tutorial
From the course: Docker: Build and Optimize Docker Images
Challenge: Debugging Docker images
(bright music) - [Instructor] It's time for our final challenge. In this challenge, you'll encounter and troubleshoot errors in your project. Here are your challenge tasks. Make sure you're working with the branch for this video named 06_03 start. Run a docker build command. Use the no cache option to make sure none of the image layers are cached. Specify the Dockerfile.optimize file. Tag your image with your username, docker-image-demo, and version 2.3.8. You should see an error saying that there's an error on line five of the Dockerfile. Open Dockerfile.optimize and fix the syntax error. Run the same Docker build command again. This time you should see a more cryptic error saying that the app folder wasn't found. There are no errors in the Dockerfile, so what could the problem be? What would cause the app folder not to be copied in the image? That's it. This challenge should take approximately five to 10 minutes. Good luck and in the next video I'll show you how I would go about…