0% found this document useful (0 votes)
2 views10 pages

University Institute of Computing Master of Computer Application Cloud Computing & Devops

The document outlines the course on Containerization with Docker, focusing on the importance of restoring Docker containers for recovery, cloning, and portability. It provides steps and commands for restoring, deploying, logging into, exiting, and managing the lifecycle of containers, emphasizing resource management and service availability. Additionally, it includes resources such as video links, textbooks, and web links for further learning.

Uploaded by

245040002
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views10 pages

University Institute of Computing Master of Computer Application Cloud Computing & Devops

The document outlines the course on Containerization with Docker, focusing on the importance of restoring Docker containers for recovery, cloning, and portability. It provides steps and commands for restoring, deploying, logging into, exiting, and managing the lifecycle of containers, emphasizing resource management and service availability. Additionally, it includes resources such as video links, textbooks, and web links for further learning.

Uploaded by

245040002
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 10

UNIVERSITY INSTITUTE OF COMPUTING

Master of Computer Application


Cloud Computing & DevOps
Subject Name: Containerization with docker
23CAH-732

DISCOVER . LEARN . EMPOWER


1
Course Outcome
CO3: Analyze the containerization of OS images to
deploy applications over Docker

2
Restoring a Docker Container

Why Restore a Docker Container?


• Restoring a Docker container is important for:
• · Recovery: Bring back the container to its backed-up state after a failure or data
corruption.
• · Cloning: Create a new container with the same state and data as the original,
useful for testing and development.
• · Portability: Deploy the same container state on different machines or
environments.
Restoring a Docker Container

Steps to Restore a Docker Container

1. Load the image from the tar file:


docker load -i backup.tar

2. Run a new container from the restored image:


docker run -d my_backup_image
Deploy, Login, Exit Container

Why Deploy, Login, and Exit a Container?

• · Deploy: Running a container ensures your application is up and running in the


defined environment.
• · Login: Accessing the container's shell allows for real-time interaction,
troubleshooting, and maintenance.
• · Exit: Exiting the container's shell safely concludes the maintenance or
debugging session.
Deploy, Login, Exit Container

Commands

· Deploying a container:
docker run -d -p 8080:80 my-deployed-app

· Logging into a container:


docker exec -it <container_id> /bin/bash

· Exiting a container shell:


exit
List, Start, Stop and Restart Containers

Why Manage Container Lifecycle?

Managing the lifecycle of containers (list, start, stop, restart) is essential for:

· Resource Management: Ensure efficient use of system resources by controlling


which containers are running.

· Service Availability: Start and stop containers to manage application availability


and updates.

· Maintenance: Restart containers to apply updates or recover from errors.


List, Start, Stop and Restart Containers

Commands

· List containers:
docker ps # List running containers
docker ps -a # List all containers, including stopped

· Start a container:
docker start <container_id>

· Stop a container:
docker stop <container_id>

· Restart a container:
docker restart <container_id>
Resources

Video Links:
https://youtu.be/Gjnup-PuquQ
https://youtu.be/wi-MGFhrad0
https://youtu.be/a1M_thDTqmU

Textbooks:
• Nickoloff, Adrian. "Docker in Action." 2nd ed., Manning Publications, 2019.
• Kane, Sean P. "Docker: Up & Running." 2nd ed., O'Reilly Media, 2018.

Reference Books:
1. Turnbull, James. The Docker Book: Containerization is the New Virtualization. 1st ed., James Turnbull, 2014.
2. Freeman, Emily. DevOps for Dummies. 1st ed., For Dummies (Wiley), 2019.

Web Links:
• Docker Documentation
• Docker Tutorial

9
THANK YOU

10

You might also like