DevOps Classroom notes 26/Jan/2025

Playing with Containers

  • For this we have three options
    • Docker Playground: We get a playground i.e. linux vm with docker pre-installed to explore docker containers
    • Install Docker Desktop on your laptop
    • Install Docker on a linux vm (Azure/AWS)
  • For using Docker Playground create a docker hub account

Exploring docker command line

Creation, Stop and Start, Delete Containers

  • For all of the below commands i would be using nginx image
  • Every container will have a unique id and name, if you donot set the name, docker engine will give random name
  • Lets explore container states
    • create vs run (watch classroom video for commands)
    • deleting all containers docker rm -f $(docker ps -a -q)
  • Pause and unpause we will deal later.

Running and understanding containers

  • Lets create a container and try to findout what is happening inside the container

Find commands in linux

  • How to get all the processes running
  • How to get all users
  • how to find ip address
  • how to get cpu and memory utilization
  • Now execute them on host
  • Now create a container and login into it
docker run -it nginx /bin/bash
  • Note: Execute the commands on host and inside the container
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a ReplyCancel reply

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

Discover more from Direct DevOps from Quality Thought

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

Continue reading

Exit mobile version
%%footer%%