<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Krit Sasi on Medium]]></title>
        <description><![CDATA[Stories by Krit Sasi on Medium]]></description>
        <link>https://medium.com/@krit.sasi?source=rss-9c97a236f36c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*u0-S9HHR3BKP9u7U.</url>
            <title>Stories by Krit Sasi on Medium</title>
            <link>https://medium.com/@krit.sasi?source=rss-9c97a236f36c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 10:08:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@krit.sasi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[[Docker] การสร้าง docker image จาก vmdk(vmware) และ vhd(hyper-v)]]></title>
            <link>https://medium.com/@krit.sasi/docker-%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%AA%E0%B8%A3%E0%B9%89%E0%B8%B2%E0%B8%87-docker-image-%E0%B8%88%E0%B8%B2%E0%B8%81-vmdk-vhd-f8e004e12535?source=rss-9c97a236f36c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8e004e12535</guid>
            <category><![CDATA[microsoft]]></category>
            <dc:creator><![CDATA[Krit Sasi]]></dc:creator>
            <pubDate>Sat, 14 Apr 2018 16:35:59 GMT</pubDate>
            <atom:updated>2018-04-14T18:33:19.934Z</atom:updated>
            <content:encoded><![CDATA[<p>[Docker] การสร้าง docker image จาก vmdk(vmware) และ vhd(hyper-v)</p><p>อ้างอิง:<br><a href="http://m-square.com.au/convert-asp-net-web-servers-to-docker-with-image2docker/">http://m-square.com.au/convert-asp-net-web-servers-to-docker-with-image2docker/</a><br><a href="http://m-square.com.au/image2docker-a-new-tool-for-prototyping-windows-vm-conversions/">http://m-square.com.au/image2docker-a-new-tool-for-prototyping-windows-vm-conversions/</a><br><a href="http://github.com/docker/communitytools-image2docker-win">http://github.com/docker/communitytools-image2docker-win</a><br><a href="http://tritoneco.com/2014/02/21/fix-for-powershell-script-not-digitally-signed/">http://tritoneco.com/2014/02/21/fix-for-powershell-script-not-digitally-signed/</a></p><p>1.ให้ทำการสร้าง vhd จาก hyper-v หรือให้ <a href="http://medium.com/@krit.sasi/converter-%E0%B8%81%E0%B8%B2%E0%B8%A3-convert-vmdk-vmware-%E0%B9%83%E0%B8%AB%E0%B9%89%E0%B9%80%E0%B8%9B%E0%B9%87%E0%B8%99-vhd-hyper-v-99e3eaac432f">convert vmdk ให้เป็น vhd(วิธีการ)</a></p><p>2.เปิด powershell พิมพ์&gt; Install-Module Image2Docker</p><p>3.powershell &gt; Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass</p><p>4.powershell &gt; Import-Module Image2Docker</p><p>5.powershell &gt; Get-WindowsArtifact<br>*คำสั่งแสดง Artifact ที่ระบุให้กับ docker image ที่ convert มาว่าให้บริการอะไร</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/859/1*OpRLA0ScozJSKgXZuYJVuA.png" /></figure><p>6.powershell&gt; ConvertTo-Dockerfile -ImagePath “C:\temp\vm-vhd\Windows Server 2008 R2 x64.vhdx” -Artifact AllWindows<br>Features -OutputPath “c:\temp\vm-vhd\out”<br>*ส่วนของ parameter -OutputPath ที่ระบุต้องเป็น directory เปล่าไม่มี data อยุ่ภายใน (ถ้ามีจะเกิด error)<br>*ส่วนของ parameter -Artifact ระบุเป็น AllWindows<br>Features เป็นการระบุให้บริการทั่วไป</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/859/1*QnfywtWejOrATeYRHkecfg.png" /></figure><p>7.แสดงไฟล์ที่ generate ได้ เท่านี้ก็ได้ dockerfile</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*lKM4GU0Qq8f--7x1nOe6yQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8e004e12535" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[Converter] การ convert vmdk(vmware) ให้เป็น vhd(hyper-v)]]></title>
            <link>https://medium.com/@krit.sasi/converter-%E0%B8%81%E0%B8%B2%E0%B8%A3-convert-vmdk-vmware-%E0%B9%83%E0%B8%AB%E0%B9%89%E0%B9%80%E0%B8%9B%E0%B9%87%E0%B8%99-vhd-hyper-v-99e3eaac432f?source=rss-9c97a236f36c------2</link>
            <guid isPermaLink="false">https://medium.com/p/99e3eaac432f</guid>
            <category><![CDATA[microsoft]]></category>
            <dc:creator><![CDATA[Krit Sasi]]></dc:creator>
            <pubDate>Sat, 14 Apr 2018 16:04:38 GMT</pubDate>
            <atom:updated>2018-04-14T16:08:08.012Z</atom:updated>
            <content:encoded><![CDATA[<p>[Converter] การ convert vmdk(vmware) ให้เป็น vhd(hyper-v)</p><p>อ้างอิง:<br><a href="http://www.microsoft.com/en-us/download/details.aspx?id=42497">http://www.microsoft.com/en-us/download/details.aspx?id=42497</a><br><a href="http://tritoneco.com/2014/02/21/fix-for-powershell-script-not-digitally-signed/">http://tritoneco.com/2014/02/21/fix-for-powershell-script-not-digitally-signed/</a><br><a href="http://blogs.msdn.microsoft.com/timomta/2015/06/11/how-to-convert-a-vmware-vmdk-to-hyper-v-vhd/">http://blogs.msdn.microsoft.com/timomta/2015/06/11/how-to-convert-a-vmware-vmdk-to-hyper-v-vhd/</a></p><p>1.Download Program <a href="http://www.microsoft.com/en-us/download/details.aspx?id=42497">mvmc_setup.msi</a> และติดตั้งบน window</p><p>2.เปิด powershell พิมพ์&gt; Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass</p><p>3.powershell &gt; Import-Module ‘C:\Program Files\Microsoft Virtual Machine Converter\MvmcCmdlet.psd1’</p><p>4.powershell &gt; ConvertTo-MvmcVirtualHardDisk -SourceLiteralPath “D:\vm-workstation\Windows Server 2008 R2 x64\W<br>indows Server 2008 R2 x64.vmdk” -VhdType DynamicHardDisk -VhdFormat vhdx -destination “c:\temp\vm-vhd”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*4MqXA8P2DwvmzrVCHNRWbA.png" /></figure><p>5.แสดง output file เมื่อ convert เสร็จสิ้น</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/858/1*bfX4eNiLhyHA-vE_9FRenw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*jR5BdjXh8PKNbdlGdA07uw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99e3eaac432f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[Docker] ติดตั้ง Docker (Window Container) บน Window Server 2016]]></title>
            <link>https://medium.com/@krit.sasi/docker-%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87-docker-%E0%B8%9A%E0%B8%99-window-server-2016-587620bf3e88?source=rss-9c97a236f36c------2</link>
            <guid isPermaLink="false">https://medium.com/p/587620bf3e88</guid>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Krit Sasi]]></dc:creator>
            <pubDate>Fri, 13 Apr 2018 12:09:48 GMT</pubDate>
            <atom:updated>2018-04-13T14:49:46.469Z</atom:updated>
            <content:encoded><![CDATA[<p>[Docker] ติดตั้ง Docker (Window Container) บน Window Server 2016</p><p>อ้างอิง: <br><a href="https://sysadmin.psu.ac.th/2017/01/03/docker-windows-server-2016/">https://sysadmin.psu.ac.th/2017/01/03/docker-windows-server-2016/</a></p><p>1.หลังจากติดตั้ง Window 2016 เรียบร้อย (บน vmware หรือ physical server)</p><p>2.เปิด Program &gt; powershell &gt; run as administrator</p><p>3.พิมพ์ &gt; Install-Module -Name DockerMsftProvider -Repository PSGallery -Force</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*Cm_i10x2NbtJdZ4zDLZu7A.png" /></figure><p>4.พิมพ์ &gt; Install-Package -Name docker -ProviderName DockerMsftProvider</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*TdGepMhmIA5PfJ4UcV_MoA.png" /></figure><p>5.ให้ Restart Server พิมพ์ &gt; Restart-Computer</p><p>6.พิมพ์ &gt; docker version (กรณีมี error ให้เปิด firewall ตาม step ในภาพ)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*htqwvi4pbQ8GCWNCv59oUg.png" /></figure><p>7.ติดตั้ง docker เสร็จสิ้น</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*O85ESchVhmnTNEqR6P_LsA.png" /></figure><p>*กรณีติดตั้งแล้ว service start ไม่ขึ้น เครื่อง hang หรืออื่นๆ ให้ลองเช็ค antivirus ที่ใช้บน Hypervisor ดูพวกฟังก์ชั่น Deep Scan อะไรประมาณนี้</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=587620bf3e88" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>