SlideShare a Scribd company logo
Docker in the Real World
DAY 2 OPERATIONS
Troubleshooting
• Build phase
• Deployment
• Runtime
Troubleshooting: Builds
Sometimes an image fails partway through the build phase. It’s helpful to be able to fire up the
broken image, enter the container, and troubleshoot. Some helpful things to look for are:
• Dependencies: does the Dockerfile contain all the dependencies, settings, and configuration values needed to fire
up the application?
• Pinpoint what stage the build failed at. You can easily see this via docker history <imageName> or by looking at
the output of the build command.
• Are permissions set properly?
• Are any imported scripts correct? For example, if you were to connect into a container and run a script, the results
should match the expectations.
Obviously, it’s much easier to troubleshoot an image when it’s not trying to do too much.
Remember the guideline of one app / purpose per container. Small, focused containers.
Troubleshooting: Deployments
Sometimes an image fails to deploy or, worse yet, deploys and breaks. Some helpful things to
look for are:
• Has the image been vetted out in test environments?
• Has the image been deployed to a repository?
• Are you referencing the proper name and tag?
• Are credentials needed in order to access the image?
• Image signing and policy restrictions can affect deployment as well.
• Does your CI/CD pipeline have the access needed in order to pull down the image?
• Is there a conflicting image locally that has the same name and tag?
Troubleshooting: Runtime
Sometimes a container fails to run or, worse yet, runs but doesn’t yield good results. Some
helpful things to look for are:
• Does the container run properly locally?
• Are any environmental variables needed for runtime being passed in correctly?
• Are permissions for bound volumes set correctly on the host?
• Are firewall rules in place that are adversely affecting traffic?
Troubleshooting Tools
• Exec command
• History command
• Inspect command
• Networking: nicolaka/netshoot

More Related Content

ZIP
Introduction To Continuous Integration
PPTX
Continuous integration
PDF
How to reduce the cost of OPNFV integration
PDF
Porque Odeio Branches
PPTX
The Hard Problems of Continuous Deployment
PDF
Jenkins User Conference: Building Your Continuous Delivery Toolkit
PDF
Continuous Deployment: Beyond Continuous Delivery
PPTX
Test Driven Development & CI/CD
Introduction To Continuous Integration
Continuous integration
How to reduce the cost of OPNFV integration
Porque Odeio Branches
The Hard Problems of Continuous Deployment
Jenkins User Conference: Building Your Continuous Delivery Toolkit
Continuous Deployment: Beyond Continuous Delivery
Test Driven Development & CI/CD

What's hot (19)

PPTX
Continuous Deployment
PPTX
Continuous Deployment
PPTX
Red7 Automating UAT Web Testing
PDF
Improving software quality using Continuous Integration
PPT
Continuous deployment steve povilaitis
PPTX
Continuous integration, delivery & deployment
PDF
Enhanced Verification Flow with Nextop's Assertion Synthesis Technology
PPTX
Continuous Testing in the Agile Age
PDF
Team City
PPTX
Source Control Concepts
PPTX
Source control - what you need to know
PDF
Introduction to Automated Testing
PPT
Adding Video to Your Documentation
PPTX
Scaling Up Continuous Deployment
PDF
Live Testing A Legacy App
PPTX
Game Development Best Practices
PPT
Continuous Integration and Builds
PPTX
EDB Failover Manager for Seamless Failover & Switchover
Continuous Deployment
Continuous Deployment
Red7 Automating UAT Web Testing
Improving software quality using Continuous Integration
Continuous deployment steve povilaitis
Continuous integration, delivery & deployment
Enhanced Verification Flow with Nextop's Assertion Synthesis Technology
Continuous Testing in the Agile Age
Team City
Source Control Concepts
Source control - what you need to know
Introduction to Automated Testing
Adding Video to Your Documentation
Scaling Up Continuous Deployment
Live Testing A Legacy App
Game Development Best Practices
Continuous Integration and Builds
EDB Failover Manager for Seamless Failover & Switchover
Ad

Similar to Docker in the Real World - Ops (20)

PDF
Journey to Docker Production: Evolving Your Infrastructure and Processes - Br...
PPTX
Open Source License Compliance with AGL
PPTX
Tips and best practices for Docker
PPTX
License compliance in embedded linux with the yocto project
PPTX
DevOps intro
KEY
Get your Project back in Shape!
PPTX
Design Review Best Practices - SREcon 2014
PPTX
DNN-Connect 2019: DNN Horror Stories
PPTX
Component-first Applications
PDF
Core Principles Of Ci
PDF
Joe Damato
PPTX
Inline Template Puppet Type
PPTX
Design Reviews for Operations - Velocity Europe 2014
PPT
scaling compiled applications - highload 2013
PPTX
Enabling Design Reviews with JIRA and Confluence - Atlassian Summit 2012
PDF
Introduction to Unit Testing, BDD and Mocking using TestBox & MockBox at Into...
PDF
Docker Enterprise Deployment Planning
PDF
Strategy, planning and governance for enterprise deployments of containers - ...
PDF
Software Defects and SW Reliability Assessment
PDF
Introduction to Unit Testing, BDD and Mocking using TestBox & MockBox at Adob...
Journey to Docker Production: Evolving Your Infrastructure and Processes - Br...
Open Source License Compliance with AGL
Tips and best practices for Docker
License compliance in embedded linux with the yocto project
DevOps intro
Get your Project back in Shape!
Design Review Best Practices - SREcon 2014
DNN-Connect 2019: DNN Horror Stories
Component-first Applications
Core Principles Of Ci
Joe Damato
Inline Template Puppet Type
Design Reviews for Operations - Velocity Europe 2014
scaling compiled applications - highload 2013
Enabling Design Reviews with JIRA and Confluence - Atlassian Summit 2012
Introduction to Unit Testing, BDD and Mocking using TestBox & MockBox at Into...
Docker Enterprise Deployment Planning
Strategy, planning and governance for enterprise deployments of containers - ...
Software Defects and SW Reliability Assessment
Introduction to Unit Testing, BDD and Mocking using TestBox & MockBox at Adob...
Ad

Recently uploaded (20)

PDF
Empathic Computing: Creating Shared Understanding
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
1. Introduction to Computer Programming.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Tartificialntelligence_presentation.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
A Presentation on Artificial Intelligence
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Electronic commerce courselecture one. Pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Spectroscopy.pptx food analysis technology
PPT
Teaching material agriculture food technology
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Empathic Computing: Creating Shared Understanding
NewMind AI Weekly Chronicles - August'25-Week II
1. Introduction to Computer Programming.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Tartificialntelligence_presentation.pptx
Network Security Unit 5.pdf for BCA BBA.
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Per capita expenditure prediction using model stacking based on satellite ima...
Unlocking AI with Model Context Protocol (MCP)
20250228 LYD VKU AI Blended-Learning.pptx
A Presentation on Artificial Intelligence
Digital-Transformation-Roadmap-for-Companies.pptx
Electronic commerce courselecture one. Pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Spectroscopy.pptx food analysis technology
Teaching material agriculture food technology
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx

Docker in the Real World - Ops

  • 1. Docker in the Real World DAY 2 OPERATIONS
  • 2. Troubleshooting • Build phase • Deployment • Runtime
  • 3. Troubleshooting: Builds Sometimes an image fails partway through the build phase. It’s helpful to be able to fire up the broken image, enter the container, and troubleshoot. Some helpful things to look for are: • Dependencies: does the Dockerfile contain all the dependencies, settings, and configuration values needed to fire up the application? • Pinpoint what stage the build failed at. You can easily see this via docker history <imageName> or by looking at the output of the build command. • Are permissions set properly? • Are any imported scripts correct? For example, if you were to connect into a container and run a script, the results should match the expectations. Obviously, it’s much easier to troubleshoot an image when it’s not trying to do too much. Remember the guideline of one app / purpose per container. Small, focused containers.
  • 4. Troubleshooting: Deployments Sometimes an image fails to deploy or, worse yet, deploys and breaks. Some helpful things to look for are: • Has the image been vetted out in test environments? • Has the image been deployed to a repository? • Are you referencing the proper name and tag? • Are credentials needed in order to access the image? • Image signing and policy restrictions can affect deployment as well. • Does your CI/CD pipeline have the access needed in order to pull down the image? • Is there a conflicting image locally that has the same name and tag?
  • 5. Troubleshooting: Runtime Sometimes a container fails to run or, worse yet, runs but doesn’t yield good results. Some helpful things to look for are: • Does the container run properly locally? • Are any environmental variables needed for runtime being passed in correctly? • Are permissions for bound volumes set correctly on the host? • Are firewall rules in place that are adversely affecting traffic?
  • 6. Troubleshooting Tools • Exec command • History command • Inspect command • Networking: nicolaka/netshoot