Year End Sale: Get Upto 40% OFF on Live Training! Offer Ending in
D
H
M
S
Get Now

Docker: Create an image with HEALTHCHECK & SHELL instructions

Level : Intermediate
Mentor: Shailendra Chauhan
Type : GuidedLab
Points : 10
Duration : 00:20:00

Lab Details

Problem Statement:

Write a Dockerfile that:

  • Uses the HEALTHCHECK instruction to monitor the container's health.
  • Uses the SHELL instruction to change the default shell.
  • Verify the health check works by running the container and checking its status, and confirm the shell changes are effective in the container.

Lab Objective:

Upon completion of this lab, you will be able to:

  • Implementing a HEALTHCHECK instruction to monitor container health.
  • Utilizing the SHELL instruction to alter the default shell.
  • Verifying functionality through container status check and confirming shell modifications.

Prerequisites

You should install the following software on your machine:

  • Docker
  • Text Editor
  • Terminal/Command Line Interface
Self-paced Membership
  • 24+ Video Courses
  • 825+ Hands-On Labs
  • 400+ Quick Notes
  • 125+ Skill Tests
  • 10+ Interview Q&A Courses
  • 10+ Real-world Projects
  • Career Coaching Sessions
  • Email Support
Upto 60% OFF
Know More
Still have some questions? Let's discuss.
CONTACT US
Accept cookies & close this