只有累積,沒有奇蹟

2019年1月30日 星期三

[Docker] Image operating system "windows" cannot be used on this platform

問題 接獲同事詢問在安裝完 Docker for Windows 之後,練習指令 docker pull image 時候跳出異常訊息,訊息內容為 image operating system "windows" cannot be used on this platform ,回想起自己一開始觀念不熟悉時也發生過類似問題,錯誤訊息如下所示 PS C:\marcustung> docker pull someone/image:latest latest: Pulling from someone/image 65014b3c3121:...

2019年1月29日 星期二

[Docker] Docker for windows 初體驗

前言 Docker 是一個 open source 專案,誕生於 2013 年初,Docker 屬於 Linux 容器的一種封裝,提供了簡單且易用的容器接口,在 2016 推出 Docker for windows 版本,相信大家或多或少都聽過甚至已經有在使用,自己也接觸過 docker 一小段時間,但都屬於玩票性質未好好研究,或許在新筆電重新安裝的時候是一個好契機可以靜下心來深入研究,以下簡單介紹 Docker 在 Windows 上的安裝流程 安裝 Docker for Windows Step 1...

2019年1月28日 星期一

[Docker] a Windows version 10.0.xxxxx-based image is incompatible with a 10.0.ooooo host

問題 今天在使用 docker image pull 上課要用的檔案時失敗,顯示訊息為 a Windows version 10.0.17763-based image is incompatible with a 10.0.17134 host ,用過 docker 許多次都未曾出現過此訊息覺得有點詭異,經確認後發現需要 pull 的 image windows 版本與筆電執行環境版本有所差異,因為會造成 pull 失敗,近期腦容量忘記事情的速度比學東西還快,特此紀錄獻給之後的自己 解決方案 確認...

2019年1月27日 星期日

[Docker] Error response from daemon: pull access denied for hello-world

問題 在 Window 10 上安裝完 Docker 後,照著官方文件提到透過 powershell 下 command line 確認安裝是否正常,第一項輸入 docker version 正常順利執行,但下一步的 docker run hello-world 就沒那麼順利跳出無法正常執行,錯誤訊息如下所示 PS D:\> docker run hello-world Unable to find image 'hello-world:latest' locally C:\Program Files\Docker\Docker\Resources\bin\docker.exe:...

2019年1月25日 星期五

[VS2017] 提升 Resharper 在 Visual Studio IDE 執行速度

前言  Visual Studio 是地表上最強的開發工具,最近發現在安裝完 Resharper 後開啟專案時都會遇到 載入專案的速度變慢的問題,Visual Studio 會在上方提示 JetBrains ReSharper Ultimate’ likely caused 8 seconds of unresponsiveness. Disabling it may improve your experience.的訊息,甚至有些開發筆電規格比較差載入時間會更久,經過主管的提點告知 Resharper...

2019年1月24日 星期四

[.NET] 選擇性參數 (Optional parameters) 的另一種選擇 - OptionalAttribute

前言  上一篇文章介紹 了具名引數 (named argument) 的用法,其中被呼叫的方法是使用 C# 4.0 的 optionnal argument 達到方法選擇性參數,過去待過的公司 method 遇到選擇性參數時大多使用 optionnal argument 方式來解決,但其實有另外一種方式可以使用 optionAttribute,這篇就簡單介紹針對同樣需求兩者的寫法 使用方式 Optional Argument 相信很多人都使用過不再多做介紹,直接看 sample code 中 firstName、lastName 為選擇性參數,如果使用端沒有傳參數時就以使用預設值,如下所示 public static class...

Copyright © 2025 m@rcus 學習筆記 | Powered by Blogger

Design by Anders Noren | Blogger Theme by NewBloggerThemes.com