Day 16 Docker for DevOps Engineers.

Day 16 Docker for DevOps Engineers.

Day 16 of #90daysofdevops

Hey Techies! Welcome to this blog

In this blog, we are going to start Docker for DevOps Engineers.

Understanding Docker

Docker is an operating system for containers. Docker is an open-source platform that enables developers to build, deploy, run, update and manage container standardized, executable components that combine application source code with the operating system (OS) libraries and dependencies required to run that code in any environment.

Task-1: Running a Container with 'docker run'

Initiate a new container and interact with it via the command line using the 'docker run' command. Example: 'docker run hello-world.'

docker run hello-world

Task-2: Examining Container or Image Details with 'docker inspect'

Utilize the 'docker inspect' command to gain in-depth information about a container or image.

Task-3: Managing Port Mappings with 'docker port'

List port mappings for a container using the 'docker port' command.

docker run -d -p 80:80 nginx
docker port wizardly_turing

Task-4: Monitoring Resource Usage with 'docker stats'

Obtain resource usage statistics for one or more containers through the 'docker stats' command.

docker stats turing

Task-5: Viewing Processes with 'docker top'

Use the 'docker top' command to observe the processes running inside a container.

docker top turing

Task-6: Archiving Images with 'docker save'

Save an image to a tar archive using the 'docker save' command.

docker save -o nginx_image.tar nginx
ls -lh nginx_image.tar

Task-7: Loading Images from Archive with 'docker load'

Load an image from a tar archive using the 'docker load' command.

docker load -i nginx_image.tar

Thank you so much for taking the time to read till the end! Hope you found this blog informative and helpful.

Feel free to explore more of my content, and don't hesitate to reach out if need any assistance from me or in case of you have any questions.

Happy Learning!

~kritika :)

Connect with me: linkedin.com/in/kritikashaw