Docker for DevOps Engineers

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 :

  1. docker inspect Command : It provides detailed information about containers or images, including configuration, networking, and volume data.

  2. docker port Command : 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.

  3. docker stats Command : 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.

  4. docker top Command : It displays the processes running inside a container. It Lists the active processes within the container, similar to the top command in Linux.

  1. docker save and docker load Commands :

    docker save is used to save an image to a tar archive, while docker load is used to load an image from a tar archive.

    docker save creates a tar archive containing the image .

    docker load imports the image from the tar archive into the local Docker environment.

Thank you for visiting my blog , Happy Learning !!