<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Kamrul Hasan</title>
    <description>The latest articles on DEV Community by Kamrul Hasan (@kamruldev).</description>
    <link>https://dev.to/kamruldev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F841270%2F0f277592-d0c6-434d-9ef4-4229131d3394.jpg</url>
      <title>DEV Community: Kamrul Hasan</title>
      <link>https://dev.to/kamruldev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kamruldev"/>
    <language>en</language>
    <item>
      <title>Check Docker Installation Details- Part 4</title>
      <dc:creator>Kamrul Hasan</dc:creator>
      <pubDate>Sun, 18 May 2025 05:19:30 +0000</pubDate>
      <link>https://dev.to/kamruldev/check-docker-installation-details-part-2-534g</link>
      <guid>https://dev.to/kamruldev/check-docker-installation-details-part-2-534g</guid>
      <description>&lt;h2&gt;
  
  
  Troubleshooting Common Docker Issues
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg46pmxe6hk83219ys4ag.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg46pmxe6hk83219ys4ag.png" alt="Image description" width="710" height="434"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Issue: Docker Daemon Not Running
&lt;/h2&gt;

&lt;p&gt;If you attempt to run a Docker command and encounter an error such as:&lt;br&gt;
&lt;code&gt;Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;This indicates that the Docker daemon isn't running. To fix this:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;1.Verify the status of the Docker service by running:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# systemctl status docker
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;2.If it's not running, start the Docker service with the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# systemctl start docker
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;3.If the service fails to start, examine the logs for error messages using:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# journalctl -u docker
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Let’s walk through a simulated scenario of this issue and how to resolve it:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;## First, stop the Docker service to simulate the issue

    # systemctl stop docker

## Try to run a Docker command

    # docker ps

## You'll see the "Cannot connect" error
## Now restart the service to fix it

    # systemctl start docker

## Verify Docker is working again

    # docker ps
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Issue: Permission Denied
&lt;/h2&gt;

&lt;p&gt;If you encounter an error such as: &lt;code&gt;Got permission denied while trying to connect to the Docker daemon socket.&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This typically indicates that your user lacks permission to access the Docker socket. To resolve this, add your user to the docker group:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# usermod -aG docker $USER

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After executing this command, you’ll usually need to log out and log back in for the changes to take effect.&lt;/p&gt;

&lt;h2&gt;
  
  
  Issue: Disk Space Problems
&lt;/h2&gt;

&lt;p&gt;Over time, Docker can use up a considerable amount of disk space due to unused images, containers, and volumes. If you notice your system is low on disk space&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1.Inspect Docker's disk usage with:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# docker system df
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;2.Remove unused resources:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;## Remove all stopped containers
    # docker container prune

## Remove all unused images
    # docker image prune

## Remove all unused volumes
    # docker volume prune

## Or remove everything unused in one command
    # docker system prune
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Let's walk through how to use the pruning command:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;## Create some containers that will exit immediately
    # docker run hello-world
    # docker run ubuntu echo "This will exit immediately"

## Now prune stopped containers
    # docker container prune
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You'll be asked to confirm the operation:&lt;br&gt;
WARNING! This will remove all stopped containers. Are you sure you want to continue? [y/N] y&lt;br&gt;
Type y to confirm. You should see output showing the removed containers.&lt;/p&gt;
&lt;h2&gt;
  
  
  Issue: Container Not Starting
&lt;/h2&gt;

&lt;p&gt;If a container fails to start, you can investigate by checking its logs:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;## First, try to start a container that might fail
    # docker run --name failing-container ubuntu apt-get update

## Check the logs
    # docker logs failing-container
You might see errors in the logs that indicate why the container failed.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Issue: Network Problems
&lt;/h2&gt;

&lt;p&gt;If containers are unable to communicate with one another or with external networks:&lt;br&gt;
1.Inspect Docker’s network settings:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# docker network ls
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;2.Inspect a specific network:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# docker network inspect bridge
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;## 3.Test connectivity from within a container:

## Start a container with networking
    # docker run -it ubuntu bash
## From inside the container, install ping
    # apt-get update &amp;amp;&amp;amp; apt-get install -y iputils-ping
## Try pinging a website
    # ping google.com
## Exit the container
    # exit
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Docker Logs and Debugging
&lt;/h2&gt;

&lt;p&gt;For overall Docker troubleshooting, reviewing the Docker daemon logs can provide valuable insights:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# journalctl -u docker
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For a specific container's logs:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# docker logs &amp;lt;container_id&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can also get a real-time stream of logs:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# docker logs -f &amp;lt;container_id&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These troubleshooting steps can help you identify and fix most common Docker problems.&lt;/p&gt;

&lt;p&gt;Md. Kamrul Hasan&lt;/p&gt;

&lt;p&gt;&lt;a href="https://linkedin.com/in/kamrul-dev" rel="noopener noreferrer"&gt;https://linkedin.com/in/kamrul-dev&lt;/a&gt;&lt;br&gt;
&lt;a href="https://github.com/kamrul-dev" rel="noopener noreferrer"&gt;https://github.com/kamrul-dev&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Related Keywords:&lt;br&gt;
common Docker issues and fixes,&lt;br&gt;
how to troubleshoot Docker problems,&lt;br&gt;
Docker daemon not running fix,&lt;br&gt;
Docker container network issues,&lt;br&gt;
Docker permission denied socket,&lt;br&gt;
Docker disk space cleanup,&lt;br&gt;
Docker prune command example,&lt;br&gt;
Docker troubleshooting commands,&lt;br&gt;
check Docker service status Linux,&lt;br&gt;
Docker logs for debugging,&lt;/p&gt;

</description>
      <category>devops</category>
      <category>docker</category>
      <category>linux</category>
      <category>container</category>
    </item>
    <item>
      <title>How to install CentOS in Virtual Box</title>
      <dc:creator>Kamrul Hasan</dc:creator>
      <pubDate>Wed, 14 May 2025 06:40:19 +0000</pubDate>
      <link>https://dev.to/kamruldev/how-to-install-centos-in-virtual-box-ido</link>
      <guid>https://dev.to/kamruldev/how-to-install-centos-in-virtual-box-ido</guid>
      <description>&lt;h2&gt;
  
  
  CentOS Installation on Virtual Box
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2nj7h1oegts4dtgo1ng2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2nj7h1oegts4dtgo1ng2.png" alt="Image description" width="800" height="525"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;1.Download Virtual Box and install it on you Host Operating System:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;https://www.virtualbox.org/wiki/Downloads&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;2.Open the Virtual Box and click &lt;code&gt;“New”&lt;/code&gt; button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgp29pmybe77pld0nqtl5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgp29pmybe77pld0nqtl5.png" alt="Image description" width="624" height="346"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;3.Fill up the fields and click &lt;code&gt;“Next”&lt;/code&gt; Button&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;• Name: For identifying your OS, put the name which OS you are installing.&lt;/li&gt;
&lt;li&gt;• Folder: In this filed refers to where you install the OS system files&lt;/li&gt;
&lt;li&gt;• ISO Image: Refers to select .iso image from your computer.&lt;/li&gt;
&lt;li&gt;• Skip the Unattended Installation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fju0p1oeepdlujtb7tujd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fju0p1oeepdlujtb7tujd.png" alt="Image description" width="624" height="311"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;4.In this section provide the &lt;code&gt;Base Memory (RAM)&lt;/code&gt; and Processors then click &lt;code&gt;“Next”&lt;/code&gt; button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftifpwf74wnw32p55lpfn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftifpwf74wnw32p55lpfn.png" alt="Image description" width="624" height="364"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;5.In this section provide the storage for the installation and click &lt;code&gt;“Next”&lt;/code&gt; button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp4fxa87pws44zp03nt7j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp4fxa87pws44zp03nt7j.png" alt="Image description" width="624" height="363"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;6.You will find the total system configuration summary then &lt;code&gt;“Finish”&lt;/code&gt; button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F73y1vu0ro659m9tqwnjr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F73y1vu0ro659m9tqwnjr.png" alt="Image description" width="624" height="364"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;7.Select the centos and click on the &lt;code&gt;“Start”&lt;/code&gt; button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F72twcj9pbmmwsclgt6bo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F72twcj9pbmmwsclgt6bo.png" alt="Image description" width="624" height="364"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;8.An installation window will be open, and it will automatically select &lt;code&gt;“Install CentOS Stream 9”&lt;/code&gt; and press &lt;code&gt;“Enter”&lt;/code&gt; It will start booting the system. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsi9hf3mp9pgz06ktq1tz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsi9hf3mp9pgz06ktq1tz.png" alt="Image description" width="624" height="322"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;9.Select Language and press &lt;code&gt;“Continue”&lt;/code&gt; button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8ernfyix6k3wyvbab3z2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8ernfyix6k3wyvbab3z2.png" alt="Image description" width="624" height="382"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;10.Installation summary page will be opened. And click on &lt;code&gt;Root Password option&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpy0glpvabmsoe19t1y73.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpy0glpvabmsoe19t1y73.png" alt="Image description" width="624" height="259"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;11.Provide the &lt;code&gt;root password&lt;/code&gt; and default username will be &lt;code&gt;root&lt;/code&gt;. click on the &lt;code&gt;“Done”&lt;/code&gt; button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsgqfsi75dk5b8cis3rft.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsgqfsi75dk5b8cis3rft.png" alt="Image description" width="624" height="285"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt; &lt;br&gt;
12.Click on the &lt;code&gt;User Creation&lt;/code&gt; option for create a user.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3vulhotebc3pga1w1vzh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3vulhotebc3pga1w1vzh.png" alt="Image description" width="624" height="274"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;13.Fill up the fields such as Full &lt;code&gt;name, Username, Password&lt;/code&gt; and click on &lt;code&gt;“Done”&lt;/code&gt; button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb4xkwbzslv0vskrvbrvr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb4xkwbzslv0vskrvbrvr.png" alt="Image description" width="624" height="255"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;14.Now set up the automatic storage disk. Click on the &lt;code&gt;“Installation Destination”&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz9dz0b1ls4k7n7zn6ef5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz9dz0b1ls4k7n7zn6ef5.png" alt="Image description" width="624" height="370"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;15.Select the and check mark the &lt;code&gt;“Local Standard Disks”&lt;/code&gt;, radio button will be &lt;code&gt;automatic&lt;/code&gt;. And finally click on “Done” button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0a9ksz98j8c99mibcpem.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0a9ksz98j8c99mibcpem.png" alt="Image description" width="624" height="336"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;16.Now click on the &lt;code&gt;“Begin Installation”&lt;/code&gt; button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F518d2cfdefj3g31o4n4y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F518d2cfdefj3g31o4n4y.png" alt="Image description" width="624" height="414"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;17.Installation process will start, and I will take some time according to your pc configurations. Keep patience and wait until this part is completed.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjxxl769cio8zlccklagq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjxxl769cio8zlccklagq.png" alt="Image description" width="624" height="414"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;18.After Installation process complete click on the &lt;code&gt;“Reboot System”&lt;/code&gt; button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fna05x1vwu9bjq299m2hk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fna05x1vwu9bjq299m2hk.png" alt="Image description" width="624" height="414"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;19.Finally, you will get the &lt;code&gt;login page&lt;/code&gt; for entering the centos system. Click on the Name Shown on the screen.  &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fneqyzo1cs26qzfau4mx5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fneqyzo1cs26qzfau4mx5.png" alt="Image description" width="624" height="429"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;20.Type &lt;code&gt;password&lt;/code&gt;which you already created for this user.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvxg8y9wej92mnw9njess.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvxg8y9wej92mnw9njess.png" alt="Image description" width="624" height="429"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;21.Now click on No Thanks or You can Take Tour.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fruvamg5emc7hkh1njqf3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fruvamg5emc7hkh1njqf3.png" alt="Image description" width="624" height="428"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;22.You will get the final window for the &lt;code&gt;CentOS&lt;/code&gt;. Click Activities and then click Terminal Icon.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fntnte5bce41l2ex718ib.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fntnte5bce41l2ex718ib.png" alt="Image description" width="624" height="428"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;23.Now you can update your system by following the steps below on the screenshot. You can directly update as root user. Here you can see steps to update your system as a normal user.&lt;/p&gt;

&lt;p&gt;Let apply this command:&lt;/p&gt;

&lt;p&gt;`- sudo dnf update&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;su – root&lt;/li&gt;
&lt;li&gt;usermod -aG wheel mrk&lt;/li&gt;
&lt;li&gt;su – mrk&lt;/li&gt;
&lt;li&gt;sudo dnf update`&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhttefwtqdzsg1h1077oz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhttefwtqdzsg1h1077oz.png" alt="Image description" width="624" height="346"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Md. Kamrul Hasan
&lt;/h1&gt;

&lt;p&gt;LinkedIn: &lt;a href="https://linkedin.com/in/kamrul-dev" rel="noopener noreferrer"&gt;https://linkedin.com/in/kamrul-dev&lt;/a&gt;&lt;br&gt;
GitHub: &lt;a href="https://github.com/kamrul-dev" rel="noopener noreferrer"&gt;https://github.com/kamrul-dev&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Related keywords:&lt;/p&gt;

&lt;p&gt;install CentOS VirtualBox,&lt;br&gt;
CentOS VirtualBox tutorial,&lt;br&gt;
CentOS 7 VirtualBox setup,&lt;br&gt;
CentOS VirtualBox installation guide,&lt;br&gt;
CentOS VirtualBox DevOps,&lt;/p&gt;

&lt;p&gt;Kamrul Hasan DevOps Engineer,&lt;br&gt;
DevOps tips by Kamrul Hasan,&lt;br&gt;
Kamrul Hasan Docker tutorials,&lt;br&gt;
Learn DevOps with Kamrul Hasan,&lt;br&gt;
Kamrul Hasan automation expert,&lt;br&gt;
Kamrul Hasan cloud and containers,&lt;br&gt;
CI/CD pipelines by Kamrul Hasan,&lt;br&gt;
Kamrul Hasan Kubernetes &amp;amp; Docker,&lt;/p&gt;

</description>
      <category>linux</category>
      <category>centos</category>
      <category>devops</category>
      <category>containers</category>
    </item>
    <item>
      <title>Check Docker Installation Details Part - 3</title>
      <dc:creator>Kamrul Hasan</dc:creator>
      <pubDate>Sun, 11 May 2025 01:30:08 +0000</pubDate>
      <link>https://dev.to/kamruldev/check-docker-installation-details-part-3-kla</link>
      <guid>https://dev.to/kamruldev/check-docker-installation-details-part-3-kla</guid>
      <description>&lt;h2&gt;
  
  
  Exploring Basic Docker Commands
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvkpvc6ndmcq0pzojjkw4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvkpvc6ndmcq0pzojjkw4.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now that we've verified our Docker installation works correctly (Part-2), let's explore some basic Docker commands that will help you manage containers and images.&lt;/p&gt;

&lt;h2&gt;
  
  
  Running an Interactive Container
&lt;/h2&gt;

&lt;p&gt;Unlike the hello-world container that runs and exits immediately, we can run containers interactively.&lt;/p&gt;

&lt;p&gt;1.Let's run an Ubuntu container and interact with its shell:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker run -it ubuntu bash
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn91fuq7dountc1j3g346.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn91fuq7dountc1j3g346.png" alt="Image description" width="624" height="182"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This command:&lt;br&gt;
• -i keeps STDIN open&lt;br&gt;
• -t allocates a pseudo-TTY (terminal)&lt;br&gt;
• ubuntu is the image name.&lt;br&gt;
• bash is the command to run inside the container.&lt;/p&gt;

&lt;p&gt;Once the container starts, you'll be at a bash prompt inside the container. The prompt shows you're logged in as root in the container. The alphanumeric string is the container ID.&lt;/p&gt;

&lt;p&gt;2.Try running some Linux commands inside the container:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cat /etc/os-release
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will display information about the Ubuntu version running in the container:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1y1ewy4kvp7jgbxmhcn2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1y1ewy4kvp7jgbxmhcn2.png" alt="Image description" width="624" height="247"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;3.When you're done exploring, exit the container by typing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;exit
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft6ok461ic5whokeiua2d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft6ok461ic5whokeiua2d.png" alt="Image description" width="624" height="76"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This will return you to your host terminal.&lt;/p&gt;

&lt;h2&gt;
  
  
  Container Lifecycle Management
&lt;/h2&gt;

&lt;p&gt;4.Let's explore how to manage the lifecycle of a container. First, we'll start a container in detached mode:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker run -d --name web nginx
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8c9htord6ji0iscm7xbp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8c9htord6ji0iscm7xbp.png" alt="Image description" width="624" height="214"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This command:&lt;br&gt;
• &lt;code&gt;-d&lt;/code&gt; runs the container in detached mode (in the background)&lt;br&gt;
• &lt;code&gt;--name&lt;/code&gt; web assigns the name &lt;code&gt;"web"&lt;/code&gt; to the container&lt;br&gt;
• nginx is the image to use.&lt;/p&gt;

&lt;p&gt;You'll see a long &lt;code&gt;container ID&lt;/code&gt; printed on the screen.&lt;/p&gt;

&lt;p&gt;5.Now, let's check that the container is running:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker ps
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F62b19c6gpxhlntfas6rp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F62b19c6gpxhlntfas6rp.png" alt="Image description" width="624" height="65"&gt;&lt;/a&gt;&lt;br&gt;
You should see the nginx container running.&lt;/p&gt;

&lt;p&gt;6.To stop the container:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker stop web
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvy6p32giy8sqwttwhvgo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvy6p32giy8sqwttwhvgo.png" alt="Image description" width="624" height="95"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;7.Verify it's stopped:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker ps
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flgrrcilv9hyk7pwa6pvx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flgrrcilv9hyk7pwa6pvx.png" alt="Image description" width="624" height="85"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;8.The container should no longer appear in the list of running containers. To see all containers including stopped ones:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker ps -a
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftcore6z03zq0jj66nsm7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftcore6z03zq0jj66nsm7.png" alt="Image description" width="624" height="78"&gt;&lt;/a&gt;&lt;br&gt;
You should the nginx containers in the stopped state.&lt;/p&gt;

&lt;p&gt;9.To start the container again and check container status:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker start web
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker ps 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgz8fgu75e7x9vu1t8jwp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgz8fgu75e7x9vu1t8jwp.png" alt="Image description" width="624" height="128"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;10.to remove a container when you no longer need it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker rm web
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuacx38jpuv3atjkbsu94.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuacx38jpuv3atjkbsu94.png" alt="Image description" width="624" height="77"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;11.&lt;code&gt;Error response from daemon:&lt;/code&gt; cannot remove container &lt;code&gt;"/web"&lt;/code&gt;: container is running stop the container before removing. First stop the running container then remove and check:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker stop web
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker rm web
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Command: docker ps -a 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1j47k7anuwmghipxpdc6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1j47k7anuwmghipxpdc6.png" alt="Image description" width="624" height="142"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You should see the web container not available.&lt;/p&gt;

&lt;h2&gt;
  
  
  Managing Docker Images
&lt;/h2&gt;

&lt;p&gt;Let's explore how to manage Docker images. To list all images:&lt;br&gt;
12.Let’s check the docker images available of your system.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker images
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9lw4hqdbgcal91m99dd2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9lw4hqdbgcal91m99dd2.png" alt="Image description" width="624" height="119"&gt;&lt;/a&gt;&lt;br&gt;
You should see at least the hello-world and nginx images.&lt;/p&gt;

&lt;p&gt;13.To remove an image when you no longer need it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker rmi hello-world
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff82yrqgp8sjyydmd5ryp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff82yrqgp8sjyydmd5ryp.png" alt="Image description" width="624" height="82"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Error response from daemon:&lt;/code&gt; conflict: unable to remove repository reference &lt;code&gt;"hello-world" (must force) - container be8b92819418&lt;/code&gt; is using its referenced image &lt;code&gt;74cc54e27dc4.&lt;/code&gt;&lt;br&gt;
Note that you can't remove images that are being used by containers (even stopped ones). You'll need to remove those containers first.&lt;/p&gt;

&lt;p&gt;14.Let’s remove the hello-world container then remove hello-world image:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Command:docker ps -a
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Command: docker rmi hello-world
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Command: docker images
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7ybtpu5qvr170mq8vakh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7ybtpu5qvr170mq8vakh.png" alt="Image description" width="624" height="197"&gt;&lt;/a&gt;&lt;br&gt;
You should see the hello-world image not available in the images list.&lt;/p&gt;
&lt;h2&gt;
  
  
  Docker System Information
&lt;/h2&gt;

&lt;p&gt;To check disk space used by Docker (containers, images, volumes):&lt;/p&gt;

&lt;p&gt;15.Let’s check disk space used by docker:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker system df
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fifcl1c4szy2oh8wxrr0t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fifcl1c4szy2oh8wxrr0t.png" alt="Image description" width="624" height="129"&gt;&lt;/a&gt;&lt;br&gt;
This will show a summary of disk usage.&lt;/p&gt;

&lt;p&gt;16.To get more detailed information:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker system df -v
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff0e91l18b3qlhw5vo3jg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff0e91l18b3qlhw5vo3jg.png" alt="Image description" width="624" height="203"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This will show a breakdown of each image and container and their sizes.&lt;/p&gt;

&lt;p&gt;LinkedIn: &lt;a href="https://linkedin.com/in/kamrul-dev" rel="noopener noreferrer"&gt;https://linkedin.com/in/kamrul-dev&lt;/a&gt;&lt;br&gt;
GitHub: &lt;a href="https://github.com/kamrul-dev" rel="noopener noreferrer"&gt;https://github.com/kamrul-dev&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Related Keywords:&lt;br&gt;
How to verify Docker installation on your system,&lt;br&gt;
Checking Docker version and system info via CLI,&lt;br&gt;
Confirming Docker is properly installed on Linux/Mac/Windows,&lt;br&gt;
Commands to check Docker installation status,&lt;br&gt;
Troubleshooting Docker setup issues,&lt;/p&gt;

&lt;p&gt;Kamrul Hasan DevOps Engineer,&lt;br&gt;
DevOps tips by Kamrul Hasan,&lt;br&gt;
Kamrul Hasan Docker tutorials,&lt;br&gt;
Learn DevOps with Kamrul Hasan,&lt;br&gt;
Kamrul Hasan automation expert,&lt;br&gt;
Kamrul Hasan cloud and containers,&lt;br&gt;
CI/CD pipelines by Kamrul Hasan,&lt;br&gt;
Kamrul Hasan Kubernetes &amp;amp; Docker,&lt;/p&gt;

</description>
      <category>devops</category>
      <category>docker</category>
      <category>ubuntu</category>
      <category>container</category>
    </item>
    <item>
      <title>Check Docker Installation Details- Part 2</title>
      <dc:creator>Kamrul Hasan</dc:creator>
      <pubDate>Wed, 07 May 2025 08:17:09 +0000</pubDate>
      <link>https://dev.to/kamruldev/check-docker-installation-details-part-2-2ook</link>
      <guid>https://dev.to/kamruldev/check-docker-installation-details-part-2-2ook</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnycu8mjtxpr35y3u9a1n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnycu8mjtxpr35y3u9a1n.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Running a Test Container
&lt;/h2&gt;

&lt;p&gt;Now that we've confirmed Docker is installed and running (Part 1), let's test the setup by running a simple container. This will verify that Docker can successfully download images and run containers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Hello World Container&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Docker offers a lightweight "hello-world" image specifically designed to test Docker installations. This minimal container confirms that:&lt;/p&gt;

&lt;p&gt;• The Docker client can connect to the Docker daemon.&lt;br&gt;
• The Docker daemon has access to pull images from Docker Hub.&lt;br&gt;
• Docker can create and launch or run containers.&lt;/p&gt;

&lt;p&gt;1.Let's run this test container with the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker run hello-world
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3a78ehktxh9ivzcxwsdg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3a78ehktxh9ivzcxwsdg.png" alt="Image description" width="624" height="330"&gt;&lt;/a&gt;&lt;br&gt;
When you run this command for the first time, Docker will:&lt;/p&gt;

&lt;p&gt;• Check if the hello-world image exists locally&lt;br&gt;
• If not, download it from Docker Hub&lt;br&gt;
• Create a container from this image&lt;br&gt;
• Start the container, which prints a message and exits&lt;/p&gt;

&lt;p&gt;This message confirms that your Docker installation is working correctly.&lt;/p&gt;
&lt;h2&gt;
  
  
  Listing Containers
&lt;/h2&gt;

&lt;p&gt;After running the hello-world container, let's check the list of containers on your system. The container we just ran has already exited, but we can still see it in the list of all containers.&lt;/p&gt;

&lt;p&gt;2.To see all containers (including stopped ones), run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker ps -a
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhiy5m7fuxvkvyk98crrf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhiy5m7fuxvkvyk98crrf.png" alt="Image description" width="624" height="111"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;-a&lt;/code&gt; flag shows all containers, including those that have stopped. Without this flag, &lt;code&gt;docker ps&lt;/code&gt; would only show running containers.&lt;br&gt;
Note the &lt;code&gt;STATUS&lt;/code&gt; column shows &lt;code&gt;"Exited (0)"&lt;/code&gt;, which means the container completed its task and exited with a status code of 0 (indicating success).&lt;/p&gt;

&lt;h2&gt;
  
  
  Listing Docker Images
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;The hello-world image was downloaded to your local machine. Let's verify this by listing all Docker images:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker images
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2diojo9q0vqs8e64m8du.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2diojo9q0vqs8e64m8du.png" alt="Image description" width="624" height="127"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This confirms that the hello-world image is stored locally on your system.&lt;/p&gt;

&lt;p&gt;LinkedIn: &lt;a href="https://linkedin.com/in/kamrul-dev" rel="noopener noreferrer"&gt;https://linkedin.com/in/kamrul-dev&lt;/a&gt;&lt;br&gt;
GitHub: &lt;a href="https://github.com/kamrul-dev" rel="noopener noreferrer"&gt;https://github.com/kamrul-dev&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Related Keywords:&lt;br&gt;
How to verify Docker installation on your system,&lt;br&gt;
Checking Docker version and system info via CLI,&lt;br&gt;
Confirming Docker is properly installed on Linux/Mac/Windows,&lt;br&gt;
Commands to check Docker installation status,&lt;br&gt;
Troubleshooting Docker setup issues,&lt;/p&gt;

&lt;p&gt;Kamrul Hasan DevOps Engineer,&lt;br&gt;
DevOps tips by Kamrul Hasan,&lt;br&gt;
Kamrul Hasan Docker tutorials,&lt;br&gt;
Learn DevOps with Kamrul Hasan,&lt;br&gt;
Kamrul Hasan automation expert,&lt;br&gt;
Kamrul Hasan cloud and containers,&lt;br&gt;
CI/CD pipelines by Kamrul Hasan,&lt;br&gt;
Kamrul Hasan Kubernetes &amp;amp; Docker,&lt;/p&gt;

</description>
      <category>docker</category>
      <category>devops</category>
      <category>linux</category>
      <category>ubuntu</category>
    </item>
    <item>
      <title>Check Docker Installation Details- part 1</title>
      <dc:creator>Kamrul Hasan</dc:creator>
      <pubDate>Wed, 07 May 2025 02:46:18 +0000</pubDate>
      <link>https://dev.to/kamruldev/check-docker-installation-details-part-1-3327</link>
      <guid>https://dev.to/kamruldev/check-docker-installation-details-part-1-3327</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Figdx6lmb1do60jv6afyn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Figdx6lmb1do60jv6afyn.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Checking Docker Version and Status
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Introduction&lt;/strong&gt;&lt;br&gt;
In this tutorial, we will learn how to verify Docker installation and ensure it's working correctly. &lt;/p&gt;

&lt;p&gt;1.At first, let's check the version of Docker that's installed on your system. Open a terminal and make sure you are root user and run the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker –version
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwbswgwkdtfy7f8gdmuj6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwbswgwkdtfy7f8gdmuj6.png" alt="Image description" width="624" height="154"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2.For more detailed version information, including both the client and server components, use:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker version
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fogx3k8aqo5g3shkqgw11.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fogx3k8aqo5g3shkqgw11.png" alt="Image description" width="624" height="379"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you receive an error saying "docker: command not found," it indicates that Docker is not installed correctly or not in your PATH.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check Docker Daemon Status
&lt;/h2&gt;

&lt;p&gt;3.Let's verify that the Docker daemon (service) is running. The Docker daemon is the background service responsible for managing Docker containers.&lt;br&gt;
Run the following command,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;systemctl status docker

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You should see output indicating that the Docker service is active and running:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fucj0ho1es8iee6y3stzo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fucj0ho1es8iee6y3stzo.png" alt="Image description" width="624" height="327"&gt;&lt;/a&gt;&lt;br&gt;
Press q for quite this session.&lt;/p&gt;

&lt;p&gt;4.If the Docker service is not running, you can start it with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;systemctl start docker
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzq9k2wwu5ziow1cwl8wr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzq9k2wwu5ziow1cwl8wr.png" alt="Image description" width="624" height="116"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;5.To ensure Docker starts automatically when your system boots, you can enable it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;systemctl enable docker
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F771zwkgdi6zhbyn2cqrv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F771zwkgdi6zhbyn2cqrv.png" alt="Image description" width="624" height="71"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Check Docker Info
&lt;/h2&gt;

&lt;p&gt;6.For a comprehensive overview of your Docker installation, use the docker info command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker info
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Friq7nmgz9eu2f4molpxy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Friq7nmgz9eu2f4molpxy.png" alt="Image description" width="624" height="505"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This will display detailed information about your Docker installation, including:&lt;br&gt;
• Container and image counts&lt;br&gt;
• Storage driver&lt;br&gt;
• Docker root directory&lt;br&gt;
• Runtime information&lt;br&gt;
• Network settings&lt;br&gt;
• Registry configuration&lt;br&gt;
The output will be quite extensive but provides valuable information about your Docker setup.&lt;/p&gt;

&lt;p&gt;LinkedIn: &lt;a href="https://linkedin.com/in/kamrul-dev" rel="noopener noreferrer"&gt;https://linkedin.com/in/kamrul-dev&lt;/a&gt;&lt;br&gt;
GitHub: &lt;a href="https://github.com/kamrul-dev" rel="noopener noreferrer"&gt;https://github.com/kamrul-dev&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Related Keywords:&lt;br&gt;
How to verify Docker installation on your system,&lt;br&gt;
Checking Docker version and system info via CLI,&lt;br&gt;
Confirming Docker is properly installed on Linux/Mac/Windows,&lt;br&gt;
Commands to check Docker installation status,&lt;br&gt;
Troubleshooting Docker setup issues,&lt;/p&gt;

&lt;p&gt;Kamrul Hasan DevOps Engineer,&lt;br&gt;
DevOps tips by Kamrul Hasan,&lt;br&gt;
Kamrul Hasan Docker tutorials,&lt;br&gt;
Learn DevOps with Kamrul Hasan,&lt;br&gt;
Kamrul Hasan automation expert,&lt;br&gt;
Kamrul Hasan cloud and containers,&lt;br&gt;
CI/CD pipelines by Kamrul Hasan,&lt;br&gt;
Kamrul Hasan Kubernetes &amp;amp; Docker,&lt;/p&gt;

</description>
      <category>devops</category>
      <category>ubuntu</category>
      <category>containers</category>
      <category>docker</category>
    </item>
    <item>
      <title>Linux Soft Links and Hard Links</title>
      <dc:creator>Kamrul Hasan</dc:creator>
      <pubDate>Sun, 13 Apr 2025 10:29:25 +0000</pubDate>
      <link>https://dev.to/kamruldev/linux-soft-links-and-hard-links-2g3l</link>
      <guid>https://dev.to/kamruldev/linux-soft-links-and-hard-links-2g3l</guid>
      <description>&lt;h2&gt;
  
  
  Linux Soft Links and Hard Links with Practical Examples
&lt;/h2&gt;

&lt;p&gt;In Linux, there are two types of links: soft links (symbolic links) and hard links. Both are used to create shortcuts or references to files and directories, but they behave differently.&lt;/p&gt;

&lt;h2&gt;
  
  
  1.Soft Link (Symbolic Link)
&lt;/h2&gt;

&lt;p&gt;A soft link, also called a symbolic link, is like a shortcut in Windows. It points to the location of a file or directory. If the original file is deleted, the soft link becomes broken and unusable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key Features:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Can link to files and directories.&lt;/li&gt;
&lt;li&gt;If the target is removed or renamed, the symbolic link becomes broken.&lt;/li&gt;
&lt;li&gt;Does not occupy extra space on the disk except for the link itself.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Creating a Soft Link:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ln -s /path/to/target /path/to/link

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Example of Soft Link:&lt;/strong&gt;&lt;br&gt;
1.Create a file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;echo "This is a test file" &amp;gt; original_file.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;2.Create a symbolic link to this file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ln -s original_file.txt soft_link.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;3.Check the symbolic link:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ls -l
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;lrwxrwxrwx 1 user user   15 Aug 22 14:12 soft_link.txt -&amp;gt; original_file.txt
-rw-rw-r-- 1 user user   20 Aug 22 14:11 original_file.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;4.Access the content through the soft link:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cat soft_link.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Breaking the Soft Link:&lt;/strong&gt;&lt;br&gt;
1.Delete the original file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;rm original_file.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;2.Try accessing the soft link:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cat soft_link.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cat: soft_link.txt: No such file or directory
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The link is broken because the target file is gone.&lt;/p&gt;

&lt;h2&gt;
  
  
  2.Hard Link
&lt;/h2&gt;

&lt;p&gt;A hard link is a reference to the same inode (data) on disk as the original file. Deleting the original file does not affect the hard link because both links point to the same data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key Features:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Can only link to files, not directories.&lt;/li&gt;
&lt;li&gt;Both the original file and the hard link share the same inode number.&lt;/li&gt;
&lt;li&gt;Even if the original file is deleted, the hard link continues to access the file's content.&lt;/li&gt;
&lt;li&gt;Occupies no extra space, both the file and hard link share the same data.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Creating a Hard Link:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ln /path/to/target /path/to/link
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Example of Hard Link:&lt;/strong&gt;&lt;br&gt;
1.Create a file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;echo "This is a test file" &amp;gt; original_file.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;2.Create a hard link to this file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ln original_file.txt hard_link.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;3.Check the hard link:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ls -li
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;123456 -rw-rw-r-- 2 user user   20 Aug 22 14:11 hard_link.txt
123456 -rw-rw-r-- 2 user user   20 Aug 22 14:11 original_file.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Notice both hard_link.txt and original_file.txt have the same inode number (123456), meaning they are pointing to the same data.&lt;/p&gt;

&lt;p&gt;4.Access the content through the hard link:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cat hard_link.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Deleting the Original File:&lt;/strong&gt;&lt;br&gt;
1.Remove the original file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;rm original_file.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;2.Access the file through the hard link:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cat hard_link.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;This is a test file
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The hard link still works even though the original file was deleted, because the data remains on the disk until all hard links are removed.&lt;/p&gt;

&lt;h2&gt;
  
  
  4.Conclusion
&lt;/h2&gt;

&lt;p&gt;Use soft links when you need shortcuts or references across different filesystems, or when you need to link to directories.&lt;br&gt;
Use hard links when you want to create multiple names for the same file that can still work even if one of the links is deleted.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to Install Docker, Create - Container, Start Container, Stop Container, Delete Container in Ubuntu Server</title>
      <dc:creator>Kamrul Hasan</dc:creator>
      <pubDate>Sun, 05 Nov 2023 15:29:36 +0000</pubDate>
      <link>https://dev.to/kamruldev/how-to-install-docker-create-container-start-container-stop-container-delete-container-in-ubuntu-server-27j9</link>
      <guid>https://dev.to/kamruldev/how-to-install-docker-create-container-start-container-stop-container-delete-container-in-ubuntu-server-27j9</guid>
      <description>&lt;p&gt;In this lab tutorial I tried to show how to Install Docker, Create - Container, Start Container, Stop Container, Delete Container  in Ubuntu Server. Follow the steps :&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt; For Docker installation, at first you have to write these two commands. I am using &lt;code&gt;ubuntu server 22.04.3 LTS&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt install docker.io
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8evzpw9yke9wxscc0y0l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8evzpw9yke9wxscc0y0l.png" alt="Image description" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;






&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo snap install docker
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftebsmwe5xs6o8qhkrp4p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftebsmwe5xs6o8qhkrp4p.png" alt="Image description" width="800" height="478"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; Check if Docker is installed or not. For checking write this command&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;which docker
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftumoj5zhuy5sbavo2gso.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftumoj5zhuy5sbavo2gso.png" alt="Image description" width="800" height="266"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Step 3:&lt;/strong&gt; To see all images present in your local machine. Write this command. What do you see? Nothing ? Yes, you are right. Initially there is no image because you did not create any image.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo docker images
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi1lvt8wxpsjbgy744uta.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi1lvt8wxpsjbgy744uta.png" alt="Image description" width="800" height="234"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Step 4:&lt;/strong&gt; To find out images in docker hub. Here I want to search for a ubuntu machine. Just write this command to find out all Ubuntu images or other packages. Remember you should write what name is assigned by the docker hub. Here “ubuntu” is named as ubuntu image. You can download this ubuntu image by this command. Any images you can download by this command.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;→ Usage: sudo docker pull &amp;lt;image name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo docker pull ubuntu 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcg8e0a8wbadn6oecqn9z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcg8e0a8wbadn6oecqn9z.png" alt="Image description" width="800" height="472"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Step 5:&lt;/strong&gt; By this command you can create a container with an image,pull the image, run the image inside the container, and get inside the container with interactive bash shell. Here, &lt;code&gt;[run = run the the image inside the container, -it = interactive terminal or bash shell, --name = name of the container (“mycontainer”), ubuntu = image name,  /bin/bash = default directory you should add ]&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo docker run -it --name mycontainer ubuntu /bin/bash
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5ndsskju3ihn9twvgl5c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5ndsskju3ihn9twvgl5c.png" alt="Image description" width="800" height="385"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Step 6:&lt;/strong&gt; If you want to come out from the container you can write this command.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;exit
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1jc6xqx225a8vz1khl6g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1jc6xqx225a8vz1khl6g.png" alt="Image description" width="780" height="169"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Step 7:&lt;/strong&gt; Now you can see the docker images by this command. Here you can see the ubuntu image is created.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo docker images
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1cm4iq660tg91y17ufk7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1cm4iq660tg91y17ufk7.png" alt="Image description" width="800" height="262"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Step 8:&lt;/strong&gt; To check status if the docker service starts or not by this command. You can see the service has already started. After checking the status type “q” for quit.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Service docker status
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9ctwszzqn7flor4dx3xe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9ctwszzqn7flor4dx3xe.png" alt="Image description" width="800" height="399"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Step 9:&lt;/strong&gt;  To see only running containers by this command. Here [p = process, s = start] . What do you see? Nothing ? Yes, there is no running container yet.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo docker ps
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq3qgs49esv7q8ebngm4c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq3qgs49esv7q8ebngm4c.png" alt="Image description" width="763" height="220"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Step 10:&lt;/strong&gt; Now let's run the container and check running status by this command. You can see the container status is “Up” that means the container is running.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;→ Usage: sudo docker start &amp;lt;container name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    sudo docker start mycontainer
    sudo docker ps
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3eyemien38twiz2e5ww9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3eyemien38twiz2e5ww9.png" alt="Image description" width="800" height="297"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Step 11:&lt;/strong&gt; You can go inside the container by this command. If you do “ls” then you will see the Linux file system inside the container.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;→ Usage: sudo attach &amp;lt;container name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo attach mycontainer
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhmis9i2541lu276527b3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhmis9i2541lu276527b3.png" alt="Image description" width="800" height="316"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Step 12:&lt;/strong&gt;  Two useful commands. [p = process, s = start, -a = all].&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo docker ps
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;{It is used for show only running containers}&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo docker ps -a
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;{It is used for show running and also stopped containers at the same time}&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Step 13:&lt;/strong&gt;  Stop container&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;→ Usage: sudo docker stop &amp;lt;container name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo docker stop mycontainer
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;&lt;strong&gt;Step 14:&lt;/strong&gt; Delete the container. [rm = remove].&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;→ Usage: sudo docker rm &amp;lt;container name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo docker rm mycontainer
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;









&lt;p&gt;Related keywords: &lt;br&gt;
Docker installation Ubuntu;&lt;br&gt;
Install Docker on Ubuntu;&lt;br&gt;
Docker CE installation guide for Ubuntu;&lt;br&gt;
How to set up Docker on Ubuntu server;&lt;br&gt;
Getting started with Docker on Ubuntu;&lt;br&gt;
Create Docker container on Ubuntu;&lt;br&gt;
Docker run command Ubuntu example;&lt;br&gt;
Docker container tutorial for Ubuntu;&lt;br&gt;
Step-by-step guide to create Docker container on Ubuntu;&lt;br&gt;
Running applications in Docker on Ubuntu server;&lt;/p&gt;

&lt;p&gt;Kamrul devops; kamrul-hasan-devops; kamrul-hasan-aws-solution-architect; kamrul-devops; kamrul-cloud; kamrul-hasan-devops; kamrul-devops-engineer; devops-engineer; kamrul-hasan-devops-engineer;&lt;/p&gt;

</description>
      <category>devops</category>
      <category>docker</category>
    </item>
    <item>
      <title>How to Install Ubuntu Server in Virtual Box</title>
      <dc:creator>Kamrul Hasan</dc:creator>
      <pubDate>Sat, 04 Nov 2023 13:54:12 +0000</pubDate>
      <link>https://dev.to/kamruldev/how-to-install-ubuntu-server-in-virtual-box-42bn</link>
      <guid>https://dev.to/kamruldev/how-to-install-ubuntu-server-in-virtual-box-42bn</guid>
      <description>&lt;p&gt;In this tutorial I tried to show how to Install Ubuntu Server in Virtual Box.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Need Hardware Requirements At Least:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;- CPU: 1 gigahertz or better. 
- RAM: 1 gigabyte or more. 
- Disk: a minimum of 2.5 gigabytes.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt; First of all we have to download a virtual box and install it on your computer and download the Ubuntu server version iso file. &lt;/p&gt;

&lt;p&gt;⇒ Virtual box download Link: &lt;a href="https://www.virtualbox.org/wiki/Downloads" rel="noopener noreferrer"&gt;https://www.virtualbox.org/wiki/Downloads&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy7w96py8lxkbl0i8975x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy7w96py8lxkbl0i8975x.png" alt="Image description" width="800" height="461"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;⇒ Ubuntu server Link: &lt;a href="https://ubuntu.com/download/server" rel="noopener noreferrer"&gt;https://ubuntu.com/download/server&lt;/a&gt; &lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp7xl5nakx9hqhw2tmfkz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp7xl5nakx9hqhw2tmfkz.png" alt="Image description" width="800" height="527"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; After installing virtual box in your computer then open the virtual box and you will found this window and click “New”  to start installation process.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fia362lz4xx0ez0du1doy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fia362lz4xx0ez0du1doy.png" alt="Image description" width="800" height="506"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;Step 3:&lt;/strong&gt; You will find this window and fill up the text box. Provide the name of your server in the name section - I provided the name is “ubuntu-server”, Folder is where you want to install the server I select F: drive to install this server, ISO Image is the ubuntu server iso file. Then click the “Next” button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fab8a6wl09j1k8wi5y3gx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fab8a6wl09j1k8wi5y3gx.png" alt="Image description" width="744" height="389"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;Step 4:&lt;/strong&gt; Now fill up the text box such as username, password, hostname, domain name. I provided the username as “kamrul” and  host name “localhost”.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fc8783jb3jhnqptic1lza.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fc8783jb3jhnqptic1lza.png" alt="Image description" width="738" height="387"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;Step 5:&lt;/strong&gt; In the hardware section select your computer RAM(base memory) and Processor. Provide this resource according to your computer configuration . I provided RAM(base memory) as 2GB(2048 MB) and Processors 2 CPU. Now click the “Next” button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkfm2i5o7xtz8owqfqhvl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkfm2i5o7xtz8owqfqhvl.png" alt="Image description" width="800" height="442"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;Step 6:&lt;/strong&gt; In the Virtual Hard disk section. Provide the storage for the ubuntu server. I provided the 30GB storage for this server. Click the “Next” button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjsolzu1ndphlt8sr5pqx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjsolzu1ndphlt8sr5pqx.png" alt="Image description" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;Step 7:&lt;/strong&gt; You will find the summary page . Here you can see the configuration of what you have done. Click the “Finish” button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1m9zhdg1cjc9ud0d4w10.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1m9zhdg1cjc9ud0d4w10.png" alt="Image description" width="800" height="445"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;Step 8:&lt;/strong&gt; For accessing this server from the outside you have to apply the “Bridged Adapter” Rule.&lt;br&gt;
Select ubuntu-server &amp;gt; settings &amp;gt; Network &amp;gt; Adapter 1 &amp;gt; Enable Network Adapter as “Bridged Adapter” &amp;gt; Click OK.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxdop5etn0yol9i3kglmn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxdop5etn0yol9i3kglmn.png" alt="Image description" width="800" height="489"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;Step 9:&lt;/strong&gt; Now select ubuntu-server and Click “Start” button. Then it will be started the installation process.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsnwrxk7ynrtvy2n5faqk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsnwrxk7ynrtvy2n5faqk.png" alt="Image description" width="800" height="502"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;Step 10:&lt;/strong&gt; You will find the this window and press the enter button on “Try or install ubuntu server” option.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffgzb5ia9k017wlo443sa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffgzb5ia9k017wlo443sa.png" alt="Image description" width="728" height="470"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;Step 11:&lt;/strong&gt; Select your comfortable language. I select “English” and press Enter.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fifzsd9dtm83nrv6281yj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fifzsd9dtm83nrv6281yj.png" alt="Image description" width="800" height="608"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;Step 12:&lt;/strong&gt; Select “Continue without updating” by using the arrow key on the keyboard then press Enter.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyz4jo5vravmr03cjgn50.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyz4jo5vravmr03cjgn50.png" alt="Image description" width="800" height="607"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;Step 13:&lt;/strong&gt; In the “Keyboard configuration” just select “Done” and Press Enter.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffkr58nrx999oyf1szbd5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffkr58nrx999oyf1szbd5.png" alt="Image description" width="800" height="613"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;Step 14:&lt;/strong&gt; In the “Choose type of  install” - select “Ubuntu Server” by pressing spacebar on your computer then it will be selected and ‘X’ sign will appear inside the parentheses. That means “Ubuntu Server” is selected. Then move down by pressing down arrow key and select the “Done” and press Enter.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftjbnkj2sp7fqsv07j57f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftjbnkj2sp7fqsv07j57f.png" alt="Image description" width="800" height="612"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;Step 15:&lt;/strong&gt; In “Network connections” - keep as it is and  Just select “Done” and press Enter.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2k6mbstokxvm6k92kd4r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2k6mbstokxvm6k92kd4r.png" alt="Image description" width="800" height="611"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;Step 16:&lt;/strong&gt; In “Configure proxy” - keep as it is and select “Done” and press Enter.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkm8e4ox37camsp2np4qn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkm8e4ox37camsp2np4qn.png" alt="Image description" width="800" height="611"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;Step 17:&lt;/strong&gt;  In ‘Configure Ubuntu archive mirror“ - keep as it is and wait a few seconds for pass the tests then select “Done” and press Enter.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvdaubahej5cx2dso0r3g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvdaubahej5cx2dso0r3g.png" alt="Image description" width="800" height="618"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;Step 18:&lt;/strong&gt; In “Guided storage configuration” -  move down using the down arrow key and select “Done” and press. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F79hfysyftuvmmm8q5krl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F79hfysyftuvmmm8q5krl.png" alt="Image description" width="800" height="614"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;Step 19:&lt;/strong&gt; In “Storage configuration” - select “Done” and press Enter.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwi32f035rkta5jjrgu2n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwi32f035rkta5jjrgu2n.png" alt="Image description" width="800" height="620"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;Step 20:&lt;/strong&gt; Select “Continue” and press Enter.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3960mfgdkfnaeqy3ihq1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3960mfgdkfnaeqy3ihq1.png" alt="Image description" width="800" height="622"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;Step 21:&lt;/strong&gt; In “Profile setup” - provide your name, your server’s name, pick a username, choose a password then select “Done” and press Enter.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F63pxr9i9hy7isi9hdpxa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F63pxr9i9hy7isi9hdpxa.png" alt="Image description" width="800" height="620"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;Step 22:&lt;/strong&gt; In “Upgrade to Ubuntu pro” - select skip now  then select “Continue” and press Enter.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpd78lr81nquc44cc8j25.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpd78lr81nquc44cc8j25.png" alt="Image description" width="800" height="620"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;Step 23:&lt;/strong&gt;  In “SSH Setup” - Select “Install OpenSSH server”  then select “Done” and press Enter.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftxrq6luk6dtltmrie759.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftxrq6luk6dtltmrie759.png" alt="Image description" width="800" height="619"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;Step 24:&lt;/strong&gt; In “Featured Server Snaps” - skip the services and move down and select “Done” and press Enter.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxj0xemlkn1wghstjm0qw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxj0xemlkn1wghstjm0qw.png" alt="Image description" width="800" height="623"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;Step 25:&lt;/strong&gt; Now finally installing the system and it will take some time . keep patience and wait until the “reboot now” button appear on the bottom side.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F13ia79nzajep1kte9xq5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F13ia79nzajep1kte9xq5.png" alt="Image description" width="800" height="616"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;Step 26:&lt;/strong&gt; Now the “Reboot Now” button appears and Select it and press Enter. It will take some time to start the machine.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvktqou8hms4s41qt9cuc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvktqou8hms4s41qt9cuc.png" alt="Image description" width="800" height="637"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;Step 27:&lt;/strong&gt; Now your ubuntu server is ready to login . Provide the username and password for login into the server.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr630j1ml1f2ro31kmiyb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr630j1ml1f2ro31kmiyb.png" alt="Image description" width="800" height="668"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;Step 28:&lt;/strong&gt; When you are logged in then do some tests . such as create a file and display that file. Following this commands.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;→ touch testfile
    → ls
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fimya7bye1nsndzv3nmst.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fimya7bye1nsndzv3nmst.png" alt="Image description" width="800" height="669"&gt;&lt;/a&gt;&lt;/p&gt;







&lt;p&gt;Related Keywords: &lt;/p&gt;

&lt;p&gt;Install Ubuntu Server in VirtualBox;&lt;br&gt;
Ubuntu Server VirtualBox installation guide;&lt;br&gt;
VirtualBox Ubuntu Server setup tutorial;&lt;br&gt;
Step-by-step Ubuntu Server installation in VirtualBox;&lt;br&gt;
Creating a virtual machine for Ubuntu Server in VirtualBox;&lt;br&gt;
Installing Ubuntu Server on a virtual machine with VirtualBox;&lt;br&gt;
Ubuntu Server virtualization with VirtualBox;&lt;br&gt;
Beginner's guide to setting up Ubuntu Server in VirtualBox;&lt;br&gt;
VirtualBox Ubuntu Server ISO installation;&lt;br&gt;
Ubuntu Server virtualization tutorial for VirtualBox;&lt;/p&gt;




&lt;p&gt;Kamrul devops; kamrul-hasan-devops; kamrul-hasan-aws-solution-architect; kamrul-devops; kamrul-cloud; kamrul-hasan-devops; kamrul-devops-engineer; devops-engineer; kamrul-hasan-devops-engineer;&lt;/p&gt;

</description>
      <category>devops</category>
      <category>ubuntu</category>
      <category>linux</category>
      <category>aws</category>
    </item>
    <item>
      <title>How to Create EC2 instance for Linux Machine in AWS and How to Access that Machine Through PuTTY.</title>
      <dc:creator>Kamrul Hasan</dc:creator>
      <pubDate>Wed, 01 Nov 2023 11:33:09 +0000</pubDate>
      <link>https://dev.to/kamruldev/how-to-create-ec2-instance-for-linux-machine-in-aws-and-how-to-access-that-machine-through-putty-5fgd</link>
      <guid>https://dev.to/kamruldev/how-to-create-ec2-instance-for-linux-machine-in-aws-and-how-to-access-that-machine-through-putty-5fgd</guid>
      <description>&lt;p&gt;How to Create EC2 instance for Linux Machine in AWS and How to Access that Machine Through PuTTY.&lt;/p&gt;

&lt;p&gt;In this lab we will explore how to create linux ec2 instances in aws and how to access that machine through putty software and how to terminate the linux machine.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step1:&lt;/strong&gt; Go to your &lt;strong&gt;AWS Management Console&lt;/strong&gt; and select a region where you want to create an instance of Windows machine.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr58r4c8eq0daf4aohn4w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr58r4c8eq0daf4aohn4w.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; Now go to the search bar and type EC2 . Then you will find &lt;strong&gt;EC2&lt;/strong&gt; service and click on it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faqgbmdz6v1bi2ed2byoi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faqgbmdz6v1bi2ed2byoi.png" alt="Image description" width="800" height="298"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Step 3:&lt;/strong&gt; You will find EC2 Dashboard like this image and click on &lt;strong&gt;“Launch instance”&lt;/strong&gt;. You can also create instances by clicking the &lt;strong&gt;“Instance (running)”&lt;/strong&gt; option.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9egqbgz8wfk7wb4ch4ya.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9egqbgz8wfk7wb4ch4ya.png" alt="Image description" width="800" height="429"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Step 4:&lt;/strong&gt; Now you will find the Launch an instance page for filling up necessary information for creating a Linux instance. Follow the below instructions : &lt;/p&gt;

&lt;p&gt;⇒ Provide the name of your Linux machine. Here I provided a name as “linux-ec2”.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn4m0wjei5bb4t6owgou5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn4m0wjei5bb4t6owgou5.png" alt="Image description" width="800" height="427"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;⇒ Select your desired Linux machine. I selected Amazon Linux and I am using free tier eligible service.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6po9kpe083kjwiplys3v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6po9kpe083kjwiplys3v.png" alt="Image description" width="800" height="682"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;⇒  Select your desired instance type. I selected &lt;strong&gt;t2.micro&lt;/strong&gt; type which is free. You can also take other instance type by clicking &lt;strong&gt;“compare instance types”&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8tb1duq6geurv2651i2c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8tb1duq6geurv2651i2c.png" alt="Image description" width="800" height="301"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;⇒  Now you have to create a login key pair for login through &lt;strong&gt;PuTTY&lt;/strong&gt;. Click on &lt;strong&gt;“Create new key pair”&lt;/strong&gt;. And you will find a window.  &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F181qnthm7w9tsyrho5g6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F181qnthm7w9tsyrho5g6.png" alt="Image description" width="800" height="357"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;⇒ Provide a key pair name, key pair type RSA and private key file format should &lt;strong&gt;.ppk **accessed through **PuTTY&lt;/strong&gt;. By this key pair you can access your Linux machine through PuTTY. Now click on &lt;strong&gt;“Create key pair”&lt;/strong&gt; and the key pair will be downloaded. The key pair must be saved in a secure place.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuvjbuhuk3nugve06s2bo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuvjbuhuk3nugve06s2bo.png" alt="Image description" width="753" height="699"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;⇒ Now Setup your Network settings. Click on the &lt;strong&gt;“Edit”&lt;/strong&gt; button to enable the edit option. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fenq8ilxwplmmqzz30xh7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fenq8ilxwplmmqzz30xh7.png" alt="Image description" width="800" height="415"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;⇒ Now select a &lt;strong&gt;VPC&lt;/strong&gt; . I selected a default &lt;strong&gt;VPC (Virtual Private Cloud)&lt;/strong&gt;. Then Select Subnet in your availability zone (or you can create a new subnet). Then Enable &lt;strong&gt;“Auto-assign public IP”&lt;/strong&gt;. Now create a &lt;strong&gt;security group&lt;/strong&gt; or you can use default security group or newly created security group by selecting existing security group option. I created a new security group. Provide a security group name and description as your purpose.  &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1pegwykoiow5jnh8eoe3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1pegwykoiow5jnh8eoe3.png" alt="Image description" width="800" height="689"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;⇒ Now add &lt;strong&gt;inbound security group rules&lt;/strong&gt;. Click on the &lt;strong&gt;“Add security group rule”&lt;/strong&gt; button .&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjys2xbco0n9cp3xklgb2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjys2xbco0n9cp3xklgb2.png" alt="Image description" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;⇒ Now add Inbound Security Group Rules for public access. Add Rules for &lt;strong&gt;SSH (port: 22), HTTP(port: 80)&lt;/strong&gt; and assign source type anywhere so that anyone can send requests and get responses from anywhere via Internet. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fitpg9thd56uaskgzu359.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fitpg9thd56uaskgzu359.png" alt="Image description" width="800" height="616"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;⇒  You can configure storage from this &lt;strong&gt;storage setting&lt;/strong&gt;. And There is an &lt;strong&gt;Advanced details&lt;/strong&gt; option for allowing advanced configuration. In this Lab we are not going to set up this advanced feature.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxm1awtnjohh61d8edmgm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxm1awtnjohh61d8edmgm.png" alt="Image description" width="800" height="377"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;⇒ Now click on &lt;strong&gt;“Launch instance”&lt;/strong&gt;. After that Linux ec2 instance will be created within a few seconds.  &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpizn51ktfhlyezmv6z2r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpizn51ktfhlyezmv6z2r.png" alt="Image description" width="765" height="347"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;⇒ Now click on &lt;strong&gt;“View all instances”&lt;/strong&gt;. After that will be redirected to the instances list page. Where your will find all instances.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkfmn7y12ldfxjofydqhc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkfmn7y12ldfxjofydqhc.png" alt="Image description" width="800" height="374"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;⇒ Wait until the status &lt;strong&gt;2/2 checks pass&lt;/strong&gt; . It means your instance is ready to use.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzx1hd1tkh3bcynroi4gy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzx1hd1tkh3bcynroi4gy.png" alt="Image description" width="800" height="184"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Step 5:&lt;/strong&gt; Select &lt;strong&gt;“linux-ec2”&lt;/strong&gt; machine and Click on the &lt;strong&gt;right bottom&lt;/strong&gt; upper sign icon for the details of the ec2 machine.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9ekv2gt81nxm98mzu8ko.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9ekv2gt81nxm98mzu8ko.png" alt="Image description" width="800" height="352"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;⇒ Now copy the &lt;strong&gt;public ip&lt;/strong&gt; address for login with PuTTY.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn1vy2d8td879pyrzs96y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn1vy2d8td879pyrzs96y.png" alt="Image description" width="800" height="355"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                  **Access Through PuTTY**
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;




&lt;p&gt;&lt;strong&gt;Step 6:&lt;/strong&gt; Go to google and search putty download for windows. And go to &lt;a href="http://www.putty.org" rel="noopener noreferrer"&gt;www.putty.org&lt;/a&gt; then click on &lt;strong&gt;“Download PuTTY&lt;/strong&gt;”. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx653ykgjlqpql18xvgkk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx653ykgjlqpql18xvgkk.png" alt="Image description" width="800" height="324"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;⇒ Download the &lt;strong&gt;putty.exe&lt;/strong&gt; file according to your computer configuration&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F90aop7687xmldfk39nhj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F90aop7687xmldfk39nhj.png" alt="Image description" width="800" height="444"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;⇒ Open &lt;strong&gt;putty.exe&lt;/strong&gt; file by double click.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fttkvoms01okn826dxgde.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fttkvoms01okn826dxgde.png" alt="Image description" width="753" height="222"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;⇒ your will find this window as like as below image.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1k8chaetay0azeq6m8q0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1k8chaetay0azeq6m8q0.png" alt="Image description" width="510" height="493"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;⇒ Click on &lt;strong&gt;+SSH&lt;/strong&gt; tab &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdm89q795fza0u221tpes.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdm89q795fza0u221tpes.png" alt="Image description" width="487" height="470"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;⇒ Then Click &lt;strong&gt;+Auth &amp;gt; Credentials&lt;/strong&gt;. You will find your computer browsing option. Click on Browse. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fokhphtlakd1vzt6lfpif.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fokhphtlakd1vzt6lfpif.png" alt="Image description" width="507" height="470"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;⇒ Now upload your &lt;strong&gt;ec2 machine’s private key&lt;/strong&gt; when you downloaded it at the time of creating an ec2 instance. Now Scroll up and find &lt;strong&gt;“Session”&lt;/strong&gt; tab&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fas25zfh2fls64snvjk10.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fas25zfh2fls64snvjk10.png" alt="Image description" width="645" height="472"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;⇒ Click on &lt;strong&gt;“Session”&lt;/strong&gt; tab and put your ec2 machine’s public IP address (follow step 5 for getting public IP address) and click on &lt;strong&gt;“Open”&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fushnckpjr7e5f7iduwck.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fushnckpjr7e5f7iduwck.png" alt="Image description" width="522" height="481"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;⇒ Click on &lt;strong&gt;“Accept”&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7jcee0zd2nbzxm93piwc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7jcee0zd2nbzxm93piwc.png" alt="Image description" width="659" height="478"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Step 7:&lt;/strong&gt; Now will find your ect2 instance Linux machine’s terminal. For login type: &lt;strong&gt;ec2-user&lt;/strong&gt; and press enter.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F36op92k2ml0bxyhylf6s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F36op92k2ml0bxyhylf6s.png" alt="Image description" width="720" height="404"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;⇒ Now you are eligible to access Linux ec2 instance of your AWS account&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fliwmw6279yahcl5p7so5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fliwmw6279yahcl5p7so5.png" alt="Image description" width="800" height="386"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;⇒ Create a text file for testing.&lt;br&gt;
→ &lt;code&gt;touch testfile&lt;/code&gt;&lt;br&gt;
→ &lt;code&gt;ls&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvehitofmiyv4v1f6dkxm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvehitofmiyv4v1f6dkxm.png" alt="Image description" width="800" height="405"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;               **Terminate This EC2 Machine**
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;




&lt;p&gt;&lt;strong&gt;Step 8:&lt;/strong&gt; Go to Instances list page  and click on &lt;strong&gt;“Instance state”&lt;/strong&gt; and click &lt;strong&gt;“Terminate instance”&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy7lew5juaxxr61jm1j5v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy7lew5juaxxr61jm1j5v.png" alt="Image description" width="800" height="320"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;⇒ Click on &lt;strong&gt;Terminate&lt;/strong&gt;. The Linux ec2 instance machine will be terminated within a few seconds.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9ynnnfssega2zpsih3bj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9ynnnfssega2zpsih3bj.png" alt="Image description" width="800" height="367"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                  **Thank You and Pray for me**
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Related Keywords: &lt;br&gt;
AWS EC2 instance creation for Linux;&lt;br&gt;
How to create EC2 instance in AWS;&lt;br&gt;
Linux EC2 instance setup on AWS;&lt;br&gt;
Access AWS EC2 Linux instance with PuTTY;&lt;br&gt;
Connecting to AWS EC2 Linux using PuTTY;&lt;br&gt;
Step-by-step guide for AWS EC2 Linux setup PuTTY;&lt;br&gt;
AWS EC2 SSH connection PuTTY tutorial;&lt;br&gt;
AWS EC2 PuTTY private key setup;&lt;br&gt;
Amazon Web Services EC2 Linux instance SSH access;&lt;br&gt;
AWS EC2 Linux machine configuration for PuTTY access;&lt;/p&gt;

&lt;p&gt;Kamrul devops; kamrul-hasan-devops; kamrul-hasan-aws-solution-architect; kamrul-devops; kamrul-cloud; kamrul-hasan-devops; kamrul-devops-engineer; devops-engineer; kamrul-hasan-devops-engineer;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>linux</category>
      <category>devops</category>
      <category>ec2</category>
    </item>
    <item>
      <title>How to create aws ec2 instance for windows server machine</title>
      <dc:creator>Kamrul Hasan</dc:creator>
      <pubDate>Thu, 26 Oct 2023 15:21:27 +0000</pubDate>
      <link>https://dev.to/kamruldev/how-to-create-aws-ec2-instance-for-windows-server-machine-1ab4</link>
      <guid>https://dev.to/kamruldev/how-to-create-aws-ec2-instance-for-windows-server-machine-1ab4</guid>
      <description>&lt;p&gt;In this tutorial I tried to show how to create windows server ec2 instance in AWS and also I showed how to access that ec2 instance through RDP. If you follow all the instructions step by step, you will be able to create windows server ec2 instance and also will be able to access that machine.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt; Go to your AWS Management Console and select a region where you want to create an instance of Windows machine.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjdvitt20pwv8vk507686.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjdvitt20pwv8vk507686.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; Now go to the search bar and type EC2 . Then you will find EC2 service and click on it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqg1x8anb2xoox8z4g1h2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqg1x8anb2xoox8z4g1h2.png" alt="Image description" width="800" height="367"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Step 3:&lt;/strong&gt; You will find EC2 Dashboard like this image and click on instances (running). &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frfu9ehobarh8sqd48jao.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frfu9ehobarh8sqd48jao.png" alt="Image description" width="800" height="348"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Step 4:&lt;/strong&gt; You will find a window for Launch instances . Now click on Launch instances.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl3ulweg36r1000tvqcg0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl3ulweg36r1000tvqcg0.png" alt="Image description" width="800" height="306"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Step 5:&lt;/strong&gt; Now you will find the Launch an instance page for filling up necessary information for creating a windows server . Follow the below instructions : &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;→&lt;/strong&gt; Provide the name of your windows server. Here I provided a name as “windows-server”.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpxhifytxlkszzh2u6asv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpxhifytxlkszzh2u6asv.png" alt="Image description" width="800" height="375"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;→&lt;/strong&gt; Select your desired windows server. I selected Windows server 2022 and I am using free tier eligible service.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7jbgopn59p6co1gfvwha.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7jbgopn59p6co1gfvwha.png" alt="Image description" width="800" height="703"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;→&lt;/strong&gt; Select your desired instance type. I selected t2.micro type which is free.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6jktdlnoaqsb0bawhz6z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6jktdlnoaqsb0bawhz6z.png" alt="Image description" width="800" height="296"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;→&lt;/strong&gt; Now you have to create a login key pair for login through RDP (Remote Desktop Connection). Click on “Create new key pair”. And you will find a window. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F34v2fld23eoemu4wb8uq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F34v2fld23eoemu4wb8uq.png" alt="Image description" width="800" height="287"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;→&lt;/strong&gt; Provide a key pair name. By this key pair you can access your windows server. Now click on “Create key pair” and the key pair will be downloaded. The key pair must save in a secure place.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvhr5usc57i76ykstbu4a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvhr5usc57i76ykstbu4a.png" alt="Image description" width="764" height="680"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;→&lt;/strong&gt; Now Setup your Network settings. Click on the “Edit” button to enable edit option.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbg87x4sub74r4iw21vte.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbg87x4sub74r4iw21vte.png" alt="Image description" width="626" height="439"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;→&lt;/strong&gt; Now select a &lt;strong&gt;VPC&lt;/strong&gt; . I selected a default &lt;strong&gt;VPC (Virtual Private Cloud)&lt;/strong&gt;. Then Select &lt;strong&gt;Subnet&lt;/strong&gt; in your availability zone (or you can create a new subnet). Then Enable &lt;strong&gt;“Auto-assign public IP”&lt;/strong&gt;. Now &lt;strong&gt;create a security group&lt;/strong&gt; or you can use default security group or newly created security group by selecting existing security group option. I created a new security group. Provide a security &lt;strong&gt;group name&lt;/strong&gt; and &lt;strong&gt;description&lt;/strong&gt; as your purpose.  &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyt2tfo91j683jime4bhu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyt2tfo91j683jime4bhu.png" alt="Image description" width="702" height="492"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;→&lt;/strong&gt; Now add Inbound Security Group Rules for public access. Add Rules for RDP, HTTP, HTTPS and assign source type anywhere so that anyone can send requests and get responses from anywhere via Internet. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F82dqspd13pd0s8ug2bua.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F82dqspd13pd0s8ug2bua.png" alt="Image description" width="686" height="605"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;→ ** You can configure storage from this **storage setting&lt;/strong&gt;. And There is an &lt;strong&gt;Advanced details&lt;/strong&gt; option for allowing advanced configuration. In this Lab we are not going to set up this advanced feature.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftp1mi1zet9g40r04q6ic.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftp1mi1zet9g40r04q6ic.png" alt="Image description" width="800" height="429"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;→&lt;/strong&gt; Now click on &lt;strong&gt;“Launch instance”&lt;/strong&gt;. After that windows server instance will be created within a few minutes.  &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4tynnpo4sfwgkl6gry2f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4tynnpo4sfwgkl6gry2f.png" alt="Image description" width="800" height="337"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;→&lt;/strong&gt; Now click on “View all instances”. After that will be redirected to the instances list page. Where you will find all instances.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe5o9fczpz73f6mv2eorr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe5o9fczpz73f6mv2eorr.png" alt="Image description" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Step 6:&lt;/strong&gt; Wait until the status 2/2 checks passed . It means your instance is ready to use.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frth2rd3cgt5t5rws8jvn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frth2rd3cgt5t5rws8jvn.png" alt="Image description" width="800" height="260"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Step 7:&lt;/strong&gt; Now It is time to access the windows server visually Through RDP. Add a &lt;strong&gt;checkmark&lt;/strong&gt; on your instance and click on &lt;strong&gt;“Connect”&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5s83i82fgpbep6rh68i2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5s83i82fgpbep6rh68i2.png" alt="Image description" width="800" height="321"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;Step 8: After clicking the &lt;strong&gt;connect&lt;/strong&gt; button you will find this window. Now click the &lt;strong&gt;RDP client&lt;/strong&gt; to connect using the RDP client. Then Download the RDP file by clicking  &lt;strong&gt;“Download remote desktop file”&lt;/strong&gt; . After that please click on &lt;strong&gt;“Get password”&lt;/strong&gt; for login.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbqmcper5wwe0mjnlsh0z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbqmcper5wwe0mjnlsh0z.png" alt="Image description" width="800" height="715"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Step 9:&lt;/strong&gt; After clicking &lt;strong&gt;“Get password”&lt;/strong&gt; , you will find this window for uploading your private key when you downloaded it during creating an instance. I named this private key file &lt;strong&gt;“windows-server-key”&lt;/strong&gt;. You will find this key pair download section of your computer. Now click on &lt;strong&gt;“Upload private key file”&lt;/strong&gt; and upload your private key file. And finally click the &lt;strong&gt;“Decrypt Password"&lt;/strong&gt; button for decrypt your login password and copy it and save it in a secure place.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvrbptjtrykrhnie1p27w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvrbptjtrykrhnie1p27w.png" alt="Image description" width="800" height="623"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F52g5fwg9pqz06stua229.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F52g5fwg9pqz06stua229.png" alt="Image description" width="746" height="252"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7lanczqhxgg4gklgc2ii.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7lanczqhxgg4gklgc2ii.png" alt="Image description" width="800" height="661"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqnq0dpx3mbofi3zpooly.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqnq0dpx3mbofi3zpooly.png" alt="Image description" width="800" height="248"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Step 10:&lt;/strong&gt; After getting the password then go to &lt;strong&gt;your computer &amp;gt; download &amp;gt;&lt;/strong&gt; here you will find the Remote Desktop Connection file when you downloaded. Open this RDP file by double click.  &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq829mter2dsjifwxotru.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq829mter2dsjifwxotru.png" alt="Image description" width="800" height="230"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;Step 11: After opening the RDP file . You will find this window and click on “Connect” button. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr0g8542g26hfihslv1vd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr0g8542g26hfihslv1vd.png" alt="Image description" width="750" height="366"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Step 12:&lt;/strong&gt; Now paste your copied password here and click the ok button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4g417eg6n2ga0g4freag.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4g417eg6n2ga0g4freag.png" alt="Image description" width="739" height="423"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Step 13:&lt;/strong&gt;  Now click on the yes button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy6ak6hwiim1n0h4nfrnc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy6ak6hwiim1n0h4nfrnc.png" alt="Image description" width="662" height="445"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;Step 15: Hurrah ! yayyy!  Now you can access your aws ec2 windows server 2022 machine.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk3utb4ubwvejtxw7wz9z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk3utb4ubwvejtxw7wz9z.png" alt="Image description" width="800" height="412"&gt;&lt;/a&gt;&lt;/p&gt;







&lt;p&gt;&lt;strong&gt;Related Keywords:&lt;/strong&gt; AWS EC2 instance creation;&lt;br&gt;
Create Windows Server EC2 instance on AWS;&lt;br&gt;
AWS EC2 Windows instance setup;&lt;br&gt;
Launch Windows Server on Amazon EC2;&lt;br&gt;
Amazon Web Services Windows instance tutorial;&lt;br&gt;
Step-by-step guide to create Windows EC2 on AWS;&lt;br&gt;
AWS Windows Server instance configuration;&lt;br&gt;
Windows Server Amazon Machine Image (AMI) selection;&lt;br&gt;
EC2 security group setup for Windows Server;&lt;br&gt;
Connect to AWS Windows EC2 instance;&lt;/p&gt;

&lt;p&gt;Kamrul devops; kamrul-hasan-devops; kamrul-hasan-aws-solution-architect; kamrul-devops; kamrul-cloud; kamrul-hasan-devops;&lt;/p&gt;

</description>
      <category>devops</category>
      <category>aws</category>
      <category>awssolutionarchitect</category>
      <category>ec2</category>
    </item>
    <item>
      <title>How to create a cyber security fiverr account profile effective way</title>
      <dc:creator>Kamrul Hasan</dc:creator>
      <pubDate>Tue, 21 Mar 2023 08:36:06 +0000</pubDate>
      <link>https://dev.to/kamruldev/how-to-create-a-cyber-security-fiverr-account-profile-effective-way-4nmp</link>
      <guid>https://dev.to/kamruldev/how-to-create-a-cyber-security-fiverr-account-profile-effective-way-4nmp</guid>
      <description>&lt;p&gt;Creating a good profile on Fiverr can be a daunting task, but it is crucial for gaining traction and securing clients. In the field of cyber security, a well-crafted profile is especially important as clients need to know they can trust their freelancer with sensitive information. Here are some tips for creating a strong Fiverr profile in the cyber security field.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.fiverr.com/kamrul_security" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhf5m2tdy3bozxv1l6ouj.png" alt="cyber security fiverr profile" width="800" height="514"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;1. Showcase your expertise&lt;/strong&gt;&lt;br&gt;
Highlight your expertise in the field of cyber security. Mention any relevant certifications or degrees you have earned. Discuss your experience working with different technologies and software. Your potential clients need to know that you have the skills and knowledge necessary to protect their business from cyber threats.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Define your services&lt;/strong&gt;&lt;br&gt;
Clearly define the services you offer. What are your areas of expertise? What types of security services can you provide? Be specific in what you can offer and don't hesitate to mention any additional services you can provide to your clients.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Use professional language&lt;/strong&gt;&lt;br&gt;
Your Fiverr profile should be professional and informative. Avoid using slang or overly casual language. Use technical language when necessary, but also make sure to explain complex concepts in a way that is easy for clients to understand.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Provide relevant work samples&lt;/strong&gt;&lt;br&gt;
Include relevant work samples in your profile. Clients want to see examples of your previous work to determine if you are a good fit for their needs. If you have worked on cyber security projects in the past, provide examples of your work in your portfolio.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Showcase your personality&lt;/strong&gt;&lt;br&gt;
While your Fiverr profile should be professional, it should also showcase your personality. Clients want to work with someone they like and trust. Talk about your interests and hobbies outside of work. Let clients know what motivates you and what sets you apart from other freelancers in your field.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. Keep your &lt;a href="https://www.fiverr.com/kamrul_security" rel="noopener noreferrer"&gt;profile&lt;/a&gt; up to date&lt;/strong&gt;&lt;br&gt;
Make sure to keep your profile up to date. Update your profile with new work samples or certifications as you earn them. Respond to messages from clients in a timely manner. Keeping your profile up to date shows that you are actively engaged in the field of cyber security and are committed to providing top-notch services to your clients.&lt;/p&gt;

&lt;p&gt;In conclusion, creating a strong Fiverr profile is crucial for anyone working in the field of cyber security. By showcasing your expertise, defining your services, using professional language, providing relevant work samples, showcasing your personality, and keeping your profile up to date, you can attract new clients and build a successful career on Fiverr.&lt;/p&gt;

&lt;p&gt;Here is my &lt;a href="https://www.fiverr.com/kamrul_security" rel="noopener noreferrer"&gt;profile&lt;/a&gt; you can see&amp;gt;&amp;gt; &lt;a href="https://www.fiverr.com/kamrul_security" rel="noopener noreferrer"&gt;https://www.fiverr.com/kamrul_security&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Related Keywords: Malware, Data Breach, Network Security, Phishing, Encryption, Firewall, Cyber Threats,Vulnerability Assessment, Penetration Testing, Cyber Attack, Cyber Crime, Cyber Defense, Cloud Security, Identity Theft, Information Security, Cyber Hygiene, Cybersecurity Framework,Cybersecurity Awareness, Cybersecurity Risk Management, Cybersecurity Incident Response,&lt;/p&gt;

</description>
      <category>cybersecurity</category>
      <category>earnmoney</category>
      <category>penetrationtesting</category>
      <category>osint</category>
    </item>
    <item>
      <title>How does JavaScript work in browsers? A quick explanation?</title>
      <dc:creator>Kamrul Hasan</dc:creator>
      <pubDate>Mon, 30 May 2022 00:27:51 +0000</pubDate>
      <link>https://dev.to/kamruldev/how-does-javascript-work-in-browsers-a-quick-explanation-4ogl</link>
      <guid>https://dev.to/kamruldev/how-does-javascript-work-in-browsers-a-quick-explanation-4ogl</guid>
      <description>&lt;p&gt;We know that JavaScript code runs on the browser. The browser has a browser engine to execute the program. Google chrome has v8 engine, fire-fox has Spider monkey engine, Internet Explorer has Chakra engine.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzzt2y137dnwvshxdm2ye.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzzt2y137dnwvshxdm2ye.png" alt="Image description" width="700" height="524"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let’s take an example v8 engine of chrome browser. When v8 engine takes the JavaScript code from the js program source files then v8 engine starts parsing the code using “parser”. Then parsing is converted into “Abstract Syntax Tree(AST). After that interpreter converts this Abstract Syntax Tree to “Byte-code” or by using “Just in Time Compiler “optimized machine code”. Just in Time Compiler Increases the performance and code runs faster. In this way JavaScript code works in v8 engine to execute the program.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>browser</category>
      <category>programming</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
