DevOps Classroom notes 19/Jun/2025

Basic container operations

  • Creating a docker container in docker playground for this we need to create account in docker hub
  • Container lifecycle
    Preview
  • Container operations
    • Create
    • start
    • run (create + start)
    • stop
    • pause
    • unpause
    • remove/delete
  • docker cheatsheet
  • Create a container and start it
docker container run -d httpd:latest

docker run -d httpd:latest

Preview
* To list all the running containers

docker ps
docker container ls

Preview

  • Every container when created gets a unique container id and if you have not passed the name docker randomly assigns a name
  • So lets create a container with a name
docker container run -d httpd:latest
docker run -d httpd:latest

Preview
* To manage the container we can pass container id or name
* Lets stop a container

docker stop <container-id|name>
docker container stop <container-id|name>

Preview
Preview
* lets start the containers
Preview
* Let try removing the container
Preview
Preview

Examine containers

  • Lets create two containers web1 and web2
    Preview
    Preview
  • watch classroom recording for remaining examination.

Exercise:

  1. What happens when you start a linux machine in terms of processes what gets launched first

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube