Posts

Showing posts with the label Docker

Top 20 Git commands that every developer should know!!

Git is one of the most popular version control systems used by developers . It helps developers to manage their source code, collaborate with others, and track changes to their code over time. In this blog post, we will discuss the top 20 most used commands in Git. git init This command is used to initialize a new Git repository. It creates a new repository with a .git directory in your project directory. git add This command is used to add new or modified files to the staging area. The staging area is where changes are prepared to be committed to the repository. git commit This command is used to commit changes to the repository. It creates a new commit object with the changes that are currently in the staging area. git status This command shows the current status of the repository. It shows which files have been modified, which files are in the staging area, and which files are not tracked by Git. git push This command is used to upload changes to a remote repository. It is used to u...

Top 20 Docker commands that every developer should know!!

Docker is a powerful tool for building, deploying and managing applications in containers . It offers a wide range of commands for working with containers, images, networks, volumes, and other components of a Docker ecosystem. In this article, we'll discuss the top 20 most used commands in Docker that every developer should know. docker run - This command creates and starts a new container from an image. docker ps - This command shows a list of running containers. docker images - This command lists all the images on the host system. docker stop - This command stops a running container. docker start - This command starts a stopped container. docker rm - This command removes one or more containers. docker rmi - This command removes one or more images. docker exec - This command runs a command inside a running container. docker logs - This command shows the logs of a container. docker inspect - This command shows the detailed information about a container, image or network. d...

How to install Docker on Ubuntu 20.04?

Docker is an open-source platform that enables you to automate the deployment, testing, and scaling of your applications . It is popular among developers because it is easy to use and flexible. In this article, we will show you how to install Docker on Ubuntu 20.04. Prerequisites Before we start, make sure you have a user account with sudo privileges. If you don't have one, create one using the following command sudo adduser your_username After adding the user account, add the user to the sudo group using the following command sudo usermod -aG sudo your_username Step 1: Update the system Before installing any new package, it is always a good practice to update the system. Run the following command to update the system sudo apt update Step 2: Install Docker To install Docker on Ubuntu 20.04, follow the steps below Install the necessary packages to use HTTPS. sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common Add the Docker GPG key using ...

How to install Docker on Ubuntu 18.04?

Docker is an open-source platform that helps to automate the deployment, testing, and scaling of applications inside containers . It's becoming increasingly popular among developers due to its flexibility and ease of use. In this article, we will learn how to install Docker on Ubuntu 18.04. Prerequisites Before we begin, make sure you have a user account with sudo privileges. If you don't have one, create one using the following command sudo adduser your_username After adding the user account, add the user to the sudo group using the following command sudo usermod -aG sudo your_username Step 1: Update the system Before installing any new package, it's always a good practice to update the system. Run the following command to update the system sudo apt-get update Step 2: Install Docker To install Docker on Ubuntu, follow the steps below, Add the Docker GPG key using the following command curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - Add the Dock...

How to analyze the file size between two different Docker Images?

In this blog, we are going to analyze and compare the file size between two Container images using Container Diff tool . What is container-diff? container-diff is a developed by Google to analyze and compare container images. We can use this tool to get the difference between multiple images or analyze the data on single image as well. It is not currently being officially supported  by Google but we can use it to get the data. Installation macOS curl -LO https://storage.googleapis.com/container-diff/latest/container-diff-darwin-amd64 sudo install container-diff-darwin-amd64 /usr/local/bin/container-diff Linux curl -LO https://storage.googleapis.com/container-diff/latest/container-diff-linux-amd64 sudo install container-diff-linux-amd64 /usr/local/bin/container-diff Windows Download the  container-diff-windows-amd64.exe  file, rename it to container-diff.exe and add it to your path. To perform analysis on Single Image container-diff analyze <img> --type=history ...