Skip to main content

Command Palette

Search for a command to run...

Day 16 Task: Docker for DevOps Engineers

Published
2 min readView as Markdown
Day 16 Task: Docker for DevOps Engineers
Y

🚀 Aspiring DevOps & DevSecOps Engineer | Cloud DevOps (Azure & AWS) | Automation & Security Champion | Passionate Learner🌐

Hi, I’m Yuvraj! 🔥 I'm embarking on an exciting journey in the world of DevOps & DevSecOps, armed with hands-on expertise and a drive to excel. From automating tasks to building robust CI/CD pipelines, I’m dedicated to turning complex challenges into efficient and secure solutions.

What I Bring to the Table: ●Linux & Shell Scripting 🖥️ Automating processes and mastering command-line operations.

●Git & Git Branching 🔀 Seamless version control for effective collaboration.

●Build Tools 🔧 (Maven & npm) Crafting stable builds for quality software.

●CI/CD Tools 🚄 (Jenkins, GitHub Actions, Azure DevOps, GitLab CI/CD) Ensuring smooth & automated deployments.

●Security in DevOps 🛡️ Embedding security at every stage to safeguard development processes.

●Artifact Management 📦 (Nexus & Azure Artifacts) Managing software versions efficiently.

●Containerization & Orchestration 🐳⎈ (Docker & Kubernetes) Deploying scalable, agile applications.

●Infrastructure as Code (IaC) 📜 (Terraform & Ansible) Automating environment provisioning.

●Monitoring & Troubleshooting 🔍 Keeping systems in check with proactive issue resolution.

●Real-world & Corporate Projects 🌟 Hands-on experience with practical implementations.

✨ Always eager to learn, collaborate, and innovate! ✨ I’m ready to transform my academic knowledge and project experiences into real-world impact. Let’s connect and explore how we can drive meaningful change together! 🤝

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

  • As you have already installed Docker in previous days' tasks, now is the time to run Docker commands.
sudo apt-get install docker.io -y && sudo chown $USER /var/run/docker.sock

Use the docker run command to start a new container and interact with it through the command line. [Hint: docker run hello-world ]

  • Use the docker inspect command to view detailed information about a container or image.
docker inspect <CONTAINER_ID>

  • Use the docker port command to list the port mappings for a container.
docker ps
docker port <container_id>

Thedocker port command specify the port mapping of its containers.

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

  • Use the docker top command to view the processes running inside a container.
docker top <container_id>

  • Use the docker save command to save an image to a tar archive.
docker save -o <output_tar_file_name>.tar <image_name>

  • Use the docker load command to load an image from a tar archive.
docker load -i <input_tar_file_name>.tar

More from this blog

Y

yuvrajdevops

38 posts

🚀 Aspiring DevOps & DevSecOps Engineer | Cloud DevOps (Azure & AWS) | Automation & Security Champion | Passionate Learner🌐