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
  • 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


* To list all the running containers

docker ps
docker container ls

  • 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


* 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>



* lets start the containers

* Let try removing the container

Examine containers

  • Lets create two containers web1 and web2

  • 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 comment

Turn on JavaScript to leave a comment.

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

Please turn AdBlock off
Social Media Icons Powered by Acurax Web Design Company
Exit mobile version
%%footer%%