Day 1 of My DevOps Journey: Getting Started with Docker 🐳

Today marks the beginning of my DevOps learning journey, and I kicked it off by diving into Docker. Here’s what I learned and accomplished on my first day.

no more it works on my machine 🚀

Understanding the Basics

First, I grasped the fu…


This content originally appeared on DEV Community and was authored by Pankil Soni

Today marks the beginning of my DevOps learning journey, and I kicked it off by diving into Docker. Here's what I learned and accomplished on my first day.

Docker meme

no more it works on my machine 🚀

Understanding the Basics

First, I grasped the fundamental concepts:

  • Containers: Lightweight, standalone packages that include everything needed to run a piece of software, ensuring consistency across different environments.
  • Docker: A platform that enables creating, deploying, and running applications using container technology.
  • Docker Hub: The official repository for Docker images, like GitHub but for container images.

Essential Docker Commands

I learned several basic Docker commands that are crucial for container management:

# List all running containers
docker ps

# List all Docker images on your system
docker image ls

# Pull an image from Docker Hub
docker pull [image-name]

# Remove containers or images
docker remove [container-id/name]

# Run a container
docker run [options] [image-name]

Hands-on Practice: Running Nginx

My first practical exercise was setting up an Nginx web server using Docker. Here's how I did it:

docker run --name my-nginx -p 8080:80 -d nginx

Let's break down this command:

  • --name my-nginx: Assigns a custom name to the container
  • -p 8080:80: Maps port 8080 on my host to port 80 in the container
  • -d: Runs the container in detached mode (background)
  • nginx: The image to use

Connecting to Docker Playground

One interesting challenge I tackled was accessing Docker Playground from Windows using Git Bash via SSH. This gave me experience with:

  • Remote container management
  • Using SSH for Docker connections
  • Working with Docker in a cloud environment

Key Takeaways from Day 1

  1. Docker simplifies application deployment through containerization
  2. Basic Docker commands are intuitive and follow a logical pattern
  3. Port mapping is crucial for accessing containerized applications
  4. Docker Playground provides a great environment for learning

What's Next?

Tomorrow, I plan to explore:

  • Create own docker image using as Dockerfile.
  • Deploying own simple express app.
  • Multi-container applications.
  • Docker networking basics.

the resource I used for learning docker is : https://youtu.be/rr9cI4u1_88?si=s8ehmucFYWfjcci5

Stay tuned for more updates on my DevOps journey! Feel free to share your thoughts and suggestions in the comments below.

Docker #DevOps #Learning #TechBlog


This content originally appeared on DEV Community and was authored by Pankil Soni


Print Share Comment Cite Upload Translate Updates
APA

Pankil Soni | Sciencx (2024-10-22T11:36:24+00:00) Day 1 of My DevOps Journey: Getting Started with Docker 🐳. Retrieved from https://www.scien.cx/2024/10/22/day-1-of-my-devops-journey-getting-started-with-docker-%f0%9f%90%b3/

MLA
" » Day 1 of My DevOps Journey: Getting Started with Docker 🐳." Pankil Soni | Sciencx - Tuesday October 22, 2024, https://www.scien.cx/2024/10/22/day-1-of-my-devops-journey-getting-started-with-docker-%f0%9f%90%b3/
HARVARD
Pankil Soni | Sciencx Tuesday October 22, 2024 » Day 1 of My DevOps Journey: Getting Started with Docker 🐳., viewed ,<https://www.scien.cx/2024/10/22/day-1-of-my-devops-journey-getting-started-with-docker-%f0%9f%90%b3/>
VANCOUVER
Pankil Soni | Sciencx - » Day 1 of My DevOps Journey: Getting Started with Docker 🐳. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/10/22/day-1-of-my-devops-journey-getting-started-with-docker-%f0%9f%90%b3/
CHICAGO
" » Day 1 of My DevOps Journey: Getting Started with Docker 🐳." Pankil Soni | Sciencx - Accessed . https://www.scien.cx/2024/10/22/day-1-of-my-devops-journey-getting-started-with-docker-%f0%9f%90%b3/
IEEE
" » Day 1 of My DevOps Journey: Getting Started with Docker 🐳." Pankil Soni | Sciencx [Online]. Available: https://www.scien.cx/2024/10/22/day-1-of-my-devops-journey-getting-started-with-docker-%f0%9f%90%b3/. [Accessed: ]
rf:citation
» Day 1 of My DevOps Journey: Getting Started with Docker 🐳 | Pankil Soni | Sciencx | https://www.scien.cx/2024/10/22/day-1-of-my-devops-journey-getting-started-with-docker-%f0%9f%90%b3/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.