Docker for DevOps Engineers.

Docker for DevOps Engineers.

Docker

  • Docker is a software platform that allows you to build, test, and deploy applications quickly.

  • Docker packages software into standardized units called containers that have everything the software needs to run including libraries, system tools, code, and runtime.

  • Using Docker, you can quickly deploy and scale applications into any environment and know your code will run.

Tasks

  1. Use the docker run command to start a new container and interact with it through the command line.

    command: sudo docker run hello-world

  2. Use the docker inspect command to view detailed information about a container or image.

    command: sudo docker inspect [containerID]

  3. Use the docker port command to list the port mappings for a container.

    command: sudo docker port [containerID]

  4. Use the docker stats command to view resource usage statistics for one or more containers.

    command: sudo docker stats [containerID]

  5. Use the docker top command to view the processes running inside a container.

    command: sudo docker top [containerID]

  6. Use the docker save command to save an image to a tar archive.

  7. Use the docker load command to load an image from a tar archive.

    docker save: save one or more images to a tar archive (streamed to STDOUT by default)

    command: sudo docker save -o [pathtofile.tar] image_name or

    sudo docker save image_name > [pathtofile.tar]

    docker load: load an image from a tar archive or STDIN

    command: sudo docker load -i [pathtofile.tar]

Reference:

Docker document

videos


Thanks for reading.

Also for your valuable time.

Keep reading.