Docker for DevOps Engineers

Docker is a software platform that allows you to build, test, and deploy applications quickly .
It packages software to small units called containers that contains libraries, code, runtime ,system tools that are required to run a software .
In this blog post, we'll explore some fundamental Docker commands, including their uses
1. docker run Command :
Use: It is used to create and starts a new container based on a specified image.
If the specified image is not available locally, Docker will attempt to download it from the configured registry.
Example :

docker inspectCommand : It provides detailed information about containers or images, including configuration, networking, and volume data.
docker portCommand : It lists the port mappings for a specific container.Displays the port mappings for the specified container in the format
CONTAINER_PORT/PROTOCOL -> HOST_IP:HOST_PORT.
docker statsCommand : It provides real-time resource usage statistics for one or more running containers.Continuous monitoring of CPU, memory, network, and disk usage for the specified containers.


docker topCommand : It displays the processes running inside a container. It Lists the active processes within the container, similar to thetopcommand in Linux.


docker saveanddocker loadCommands :docker saveis used to save an image to a tar archive, whiledocker loadis used to load an image from a tar archive.docker savecreates a tar archive containing the image .docker loadimports the image from the tar archive into the local Docker environment.

Thank you for visiting my blog , Happy Learning !!



