Day 16 Task: Docker for DevOps Engineers.

Day 16 Task: Docker for DevOps Engineers.

"Containerization Unleashed: Navigating Development and Deployment with Docker"

ยท

2 min read

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

๐Ÿ”ถ Task-1 : docker run

  • Use the docker run command to start a new container and interact with it through the command line.
#docker run [OPTIONS] IMAGE [COMMAND] [ARG...]
docker run hello-world

๐Ÿ”ถ Task-2 : docker inspect

  • Use the docker inspect command to view detailed information about a container or image.
#docker inspect [OPTIONS] NAME|ID [NAME|ID...]
docker inspect hello-world

๐Ÿ”ถ Task-3 : docker port

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

docker run -d -p 80:80 nginx
# docker port CONTAINER [PRIVATE_PORT[/PROTO]]
docker port epic_lampord

๐Ÿ”ถ Task-4 : docker stats

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

๐Ÿ”ถ Task-5 : docker top

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

docker top epic_lamport

๐Ÿ”ถ Task-6 : docker stats

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

#docker save [OPTIONS] IMAGE [IMAGE...]
docker save -o nginx_image.tar nginx
ls -lh nginx_image.tar

๐Ÿ”ถ Task-7 : docker load

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

docker load -i nginx_image.tar

If you find my blog valuable, I invite you to like, share, and join the discussion. Your feedback is immensely cherished as it fuels continuous improvement. Let's embark on this transformative DevOps adventure together! ๐Ÿš€ #devops #90daysofdevop #git&github #docker

ย