# Part 1 : Installation

1. เข้าเว็บ [Docker desktop](https://www.docker.com/products/docker-desktop/) แล้วกดดาวน์โหลดดังรูป ถ้าใช่ windows&#x20;

<figure><img src="https://paper-attachments.dropbox.com/s_09040379E6A4937DF732454D4741AF48B07B31859D14CB8A9C32BF773172D7DF_1661843837299_image.png" alt=""><figcaption><p>Docker Desktop download pages</p></figcaption></figure>

2\. เมื่อดาวน์โหลดเสร็จจะขึ้นหน้าต่างให้ยืนยันสิทธิ์การติดตั้ง  จะขึ้นหน้าต่างดังรูปมา&#x20;

<figure><img src="https://paper-attachments.dropbox.com/s_09040379E6A4937DF732454D4741AF48B07B31859D14CB8A9C32BF773172D7DF_1661845050843_image.png" alt=""><figcaption><p>Start Installation docker desktop app</p></figcaption></figure>

{% hint style="info" %}
Cuation : สำหรับคนที่เคยติดตั้งแล้วจะขึ้นแจ้งเตือนดังรูป
{% endhint %}

<figure><img src="https://paper-attachments.dropbox.com/s_09040379E6A4937DF732454D4741AF48B07B31859D14CB8A9C32BF773172D7DF_1661845163895_image.png" alt=""><figcaption><p>Replace installation notification</p></figcaption></figure>

3\. หลังจากติดตั้งเสร็จโปรแกรมจะเปิดขึ้นมาอัตโนมัติ

<figure><img src="https://paper-attachments.dropbox.com/s_09040379E6A4937DF732454D4741AF48B07B31859D14CB8A9C32BF773172D7DF_1661845885030_image.png" alt=""><figcaption><p>Loading start Docker with Virtual</p></figcaption></figure>

<figure><img src="https://paper-attachments.dropbox.com/s_09040379E6A4937DF732454D4741AF48B07B31859D14CB8A9C32BF773172D7DF_1661845990831_image.png" alt=""><figcaption><p>Docker ready to use</p></figcaption></figure>

4\. กดไปที่การตั้งค่าดังรูป แล้วทำการเข้าไปที่ Resource → WSL integration แล้วทำการเปิด docker ให้ใช้งานบน distro WSL เวอร์ชันที่เราใช้ดังรูป

<figure><img src="https://paper-attachments.dropbox.com/s_09040379E6A4937DF732454D4741AF48B07B31859D14CB8A9C32BF773172D7DF_1661846234424_image.png" alt=""><figcaption><p>Docker Setting Icon</p></figcaption></figure>

<figure><img src="https://paper-attachments.dropbox.com/s_09040379E6A4937DF732454D4741AF48B07B31859D14CB8A9C32BF773172D7DF_1661846247528_image.png" alt=""><figcaption><p>Setting WSL docker enable</p></figcaption></figure>

5\. เปิด WSL เวอร์ชันที่เราใช้ขึ้นมาและพิมคำสั่งเพื่อตรวจสอบสถานะของ docker&#x20;

```bash
$ docker info
```

6\. หลังจากนั้นจะทดสอบการ pull โดยการดึง docker ที่ชื่อว่า hello-world มาทดสอบ image จาก docker hub

```bash
$ docker pull hello-world
```

7\. เมื่อทำการ pull เสร็จสิ้นจะทำการตรวจสอบ image ที่ pull เข้ามาด้วยคำสั่ง

```bash
$ docker images
```

<figure><img src="https://paper-attachments.dropbox.com/s_09040379E6A4937DF732454D4741AF48B07B31859D14CB8A9C32BF773172D7DF_1661847044383_image.png" alt=""><figcaption></figcaption></figure>

8\. ทำการรัน docker image ดังกล่าวเพื่อทดสอบการทำงานดังนี้

```bash
$ docker run <name of REPOSITORY>
```
