Docker Cheat Sheet 2025

HOME

docker --version
docker login
docker logout
docker -d
docker info

docker images
docker build -t [image_name] .
 docker build -t [image_name] . –no-cache 
docker pull [image]
docker tag [image] [new_image]
docker rmi [image_id]
 docker image prune 

docker ps
docker ps -a
docker run [image]
docker ps -a
docker run [image]
docker run --name [container_name] [image_name]
docker run  -d --name [container_name] [image_name]
docker run --name [name] [image]
docker exec -it [container_name] sh
 docker stop [container_name] (or [container-id])
docker start [container_name] (or [container-id])
 docker restart [container_name] (or [container-id])
 docker rm [container_name]
 docker logs [container_name] (or [container-id])
 docker inspect [container_name] (or [container-id])
docker cp [container]:/src /dest

docker-compose up
docker-compose up -d
docker-compose down
docker-compose build
docker-compose logs
docker-compose exec [service] bash

docker volume ls
docker volume create [name]
docker volume inspect [name]
docker volume rm [name]
docker run -v [vol]:/data [image]

docker network ls
docker network create [name]
docker network inspect [name]
docker network rm [name]
docker run --network [name] [image]

Git Cheat Sheet

HOME

git config --global user.name "<Your-Full-Name>"
git config --global user.email "<your-email-address>"

git init
git clone <repository_url>
git clone --branch <branch_name> <repo_url>

git status
git add <file1> <file2> … <fileN>
git add .
git rm <filename_or_dir>
 git diff [file]
git commit -m “[Commit message]”
git commit --amend -m "New commit message"

git branch
git branch -a
git branch [branch-name]
 git rebase [branch_name]
git checkout  [branch_name]
git checkout -b  [branch_name]
git switch -c  [branch_name]
git branch -d [branch_name]
git branch -D [branch_name]
git branch -m [branch_name]
git merge [branch_name]

git fetch [remote]
git push origin branch
git pull
git pull --rebase
git push --all
git remote
git remote add [name] [url]
git remote rm [remote]
git remote rename [old_name] [new_name]

git stash
git stash list
git stash pop
git stash drop

git log
git log --all
git diff
git log --author="Name"
git log --until="2024-12-31"
git log [file]
git show

Docker – Advance Level – Multiple Choice Questions and Answers – MCQ1

HOME

























Docker – Basic Level – Multiple Choice Questions and Answers – MCQ1

HOME

























Automate JMeter Testing with GitHub Actions

HOME

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>com.example</groupId>
  <artifactId>JMeter_GitHub_Integration</artifactId>
  <version>1.0-SNAPSHOT</version>
  <packaging>jar</packaging>

  <name>JMeter_GitHub_Integration</name>
  <url>http://maven.apache.org</url>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.14.0</version>
        <configuration>
          <source>17</source>
          <target>17</target>
        </configuration>
      </plugin>

      <plugin>
        <groupId>com.lazerycode.jmeter</groupId>
        <artifactId>jmeter-maven-plugin</artifactId>
        <version>3.8.0</version>
        <executions>
          <!-- Generate JMeter configuration -->
          <execution>
            <id>configuration</id>
            <goals>
              <goal>configure</goal>
            </goals>
          </execution>
          <!-- Run JMeter tests -->
          <execution>
            <id>jmeter-tests</id>
            <goals>
              <goal>jmeter</goal>
            </goals>
          </execution>
          <!-- Fail build on errors in test -->
          <execution>
            <id>jmeter-check-results</id>
            <goals>
              <goal>results</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <generateReports>true</generateReports>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>

mvn clean verify

echo "# JMeter_Github_Integration" >> README.md
git init
git add .
git commit -m "Jmeter Tests"
git branch -M main
git remote add origin https://github.com/vibssingh/JMeter_Github_Integration.git
git push -u origin main

name: JMeter Test Run

on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v4
    - name: Set up JDK 17
      uses: actions/setup-java@v4
      with:
        java-version: '17'
        distribution: 'temurin'
    
    - name: Run JMeter tests
      run: mvn clean verify

    - name: JMeter Test Report Generation
      uses: actions/upload-artifact@v4
      if: success() || failure()
      with:
          name: JMeter Report                                             # Name of the folder
          path: target/jmeter/reports/SOAP_Request           # Path to test results  

Below shows all the steps of the workflow.

GitHub – Multiple Choice Questions and Answers – MCQ1

HOME

























How to install Desktop Docker on Windows 11

HOME

The current image has no alternative text. The file name is: image-34.png

wsl --version

wsl --install

docker --version

 docker pull nginx

 docker login -u my-user-name (using real username) 

DevOps Multiple Choice Answers – MCQ2

HOME

DevOps Multiple Choice Questions – MCQ2

























DevOps Multiple Choice Questions – MCQ1 
Jenkins Multiple Choice Questions – MCQ1
Rest API Multiple Choice Questions – MCQ1
Git Multiple Choice Questions – MCQ1 
JMeter Multiple Choice Questions – MCQ1

DevOps Multiple Choice Questions – MCQ2

HOME

Answer


Answer


Answer


Answer


Answer


Answer


Answer


Answer


Answer


Answer


Answer


Answer


Answer


Answer


Answer


Answer


Answer


Answer


Answer


Answer


Answer


Answer



Answer


Answer

====================================================================

DevOps Multiple Choice Questions – MCQ1 
Jenkins Multiple Choice Questions – MCQ1
Rest API Multiple Choice Questions – MCQ1
Git Multiple Choice Questions – MCQ1 
JMeter Multiple Choice Questions – MCQ1

Jenkins Multiple Choice Answers – MCQ2

HOME

Jenkins Multiple Choice Questions – MCQ2