Docker Images and Docker Containers

Search for a command to run...

No comments yet. Be the first to comment.
Introduction Argo Workflows is an open-source workflow orchestration tool for Kubernetes. In this tutorial, we will walk through the steps to install Argo Workflows on a Kubernetes cluster and access its server UI. Step 1: Check Current Context Befor...

The Azure CLI is a powerful tool for managing and automating tasks in Azure. To use the Azure CLI, you need to log in to your Azure account. In this blog, we will go over the different methods you can use to log in to Azure using the Azure CLI. Log i...

Connecting to an Azure VM from windows can be a bit tricky and you may get errors like WARNING: UNPROTECTED PRIVATE KEY FILE! Permissions for ' ' are too open, It is required that your private key files are NOT accessible by others This private key w...

A methodology where all the configurational and/or infrastructure codes are set up in a separate single repository is known as GitOps. This suits tools like Ansible, Terraform and Kubernetes, where they do require separate files for their configurati...

Straight to the point, there are tons of things to ask in JS, but these are a few of them which can be a quick refresher. Event loop, Single-threaded programming language - Explain, Asynchronous and synchronous, Promises and callbacks, "This" ke...

Peace to you all , Here is the Link to my previous blog, Where I have posted about Docker , Containers and DevOps. It is the day 3 of documenting my DevOps Journey
Here In this blog, there is a practical hands-on approach to running docker container in your machine.
Docker desktop can be installed from this Link .
Get Started with Docker | Docker
It will download everything it needs to run on its own .
Once downloaded it will demand to restart , after restarting try running docker . If WSL 2 installation is incomplete error pops up , download your respective Linux kernel update package if you are using windows.
Once the download is completed and all set , Run
docker --version
in the command prompt , to check whether docker works fine.
Once you receive the version , we are good to go.
The command line interface has everything that can be done and docker desktop can be used to visualize it in a GUI.
Getting Hands-on , let’s start by building a small html file .
Visual studio code is the text editor I predominantly use and it has tons of features and that requires a separate blog .
It is not necessary you have to have a Visual studio code now , Open Notepad and create a simple HTML page or just copy-paste the below content.
<h1> This is a sample Web App </h1>
Save it as an HTML file.
Try opening it and it should display like this in the browser ,

What is an Nginx?
It is a web server , I use Nginx to demonstrate hosting a web application in the web server.

The official image chip and verified publisher chip makes the image trustworthy and it is on our own risk to use any other docker images .
Open Nginx and explore the page .
The command to pull the image will be found on the page itself , Here it is
docker pull nginx
Running it in the command prompt will pull the image from DockerHub .
Once the pull is completed ,
docker images
the above command should show the details of the docker image.
Yes , We have successfully pulled an image from DockerHub.
Now we can run this and check in the browser as well .
docker run -p 80:80 -d nginx

Okay . So hold on, stay with me as we get to know docker more and DevOps even more.
Okay Then , Will get back Tomorrow with more!
Peace be upon you!