Windows Container FAQ (updating)

  • Nuget restore fail

    • error:

nuget restore Src\GICG.sln -MSBuildPath "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin" 15:40:52 Using Msbuild from 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin'. 15:40:52 Error parsing solution file at xxx.sln: Exception has been thrown by the target of an invocation. The project file could not be loaded. Could not load file or assembly 'Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. xxx.sln
    • Solve: update NuGet.exe CLI tool from 4.4.3.5892 to 5.4.0.6315 

  • Chocolatey error installing vim and made2010 in base image 'aspnet:4.8-20200114-windowsservercore-ltsc2019'

    • Error:

15:15:37 Installing made2010...
15:15:42 ERROR: Running ["C:\Users\ContainerAdministrator\AppData\Local\Temp\chocolatey\made2010\2016.07.01\AccessDatabaseEngine_X64.exe" /quiet /norestart ] was not successful. Exit code was '-1073741502'. See log for possible error messages.
15:15:42 The install of made2010 was NOT successful.
------------------------
13:53:44 Extracting C:\Users\ContainerAdministrator\AppData\Local\Temp\vim\8.2.0374\vimInstall.zip to C:\tools...
13:53:45 ERROR: 7-Zip signalled an unknown error (code -1073741502) This is most likely an issue with the 'vim' package and not with Chocolatey itself. Please follow up with the package maintainer(s) directly.
    • Solve:  

# Use base image with 
FROM mcr.microsoft.com/dotnet/framework/aspnet:4.8-20200211-windowsservercore-ltsc2019

rather than 
FROM mcr.microsoft.com/dotnet/framework/aspnet:4.8-20200114-windowsservercore-ltsc2019
  • Windows Server 2016 與 Windows 10 上的 Windows Container

    • 透過 docker info 指令可以看到 docker 相關設定

    • * 預設 Docker 使用路徑

      • C:\ProgramData\dcoker

    • * 預設 image 儲存資料夾

      • windowsfilter

    • * 修改儲存路徑

    •     1. 在 C:\ProgramData\Docker\config 新增 daemon.json

    •     2. 修改 daemon.json 指定儲存路徑 {"graph": "C:\\Docker"}

    •     3. 重新啟動 docker 服務

    •         * 使用 powershell 執行指令

        • restart-service *docker*

  • Grant permission to folder

# At version ltsc2019 - 10.0.17763 N/A Build 17763

## Work
RUN icacls 'C:\Memo\' /grant 'IIS_IUSRS:(OI)(CI)F' /T

## Not work
RUN icacls 'C:\Memo\' /grant "IIS_IUSRS":(OI)(CI)F /T
RUN icacls 'C:\Memo\' /grant "IIS_IUSRS:(OI)(CI)F" /T
  • Get current user

[Environment]::UserName
$env:username
whoami
  • Get all users

PS C:\inetpub\wwwroot> icacls .
. BUILTIN\IIS_IUSRS:(RX)
  BUILTIN\IIS_IUSRS:(OI)(CI)(IO)(GR,GE)
  NT SERVICE\TrustedInstaller:(I)(F)
  NT SERVICE\TrustedInstaller:(I)(OI)(CI)(IO)(F)
  NT AUTHORITY\SYSTEM:(I)(F)
  NT AUTHORITY\SYSTEM:(I)(OI)(CI)(IO)(F)
  BUILTIN\Administrators:(I)(F)
  BUILTIN\Administrators:(I)(OI)(CI)(IO)(F)
  BUILTIN\Users:(I)(RX)
  BUILTIN\Users:(I)(OI)(CI)(IO)(GR,GE)
  CREATOR OWNER:(I)(OI)(CI)(IO)(F)


Successfully processed 1 files; Failed processing 0 files
  • Grant permission by icacls on OS version 10.0.17763 (ltsc2019)

    • error msg: 

      • Invalid parameter "'IIS_IUSRS:(F)'"

      • C:\inetpub\wwwroot" /grant IIS_IUSRS:f: The filename, directory name, or volume label syntax is incorrect.

    • solution:

RUN icacls C:\inetpub\wwwroot\ /grant "IIS_IUSRS:(F)"
  • Fail to grant permission to folder on OS version 10.0.17763;  should use 10.0.18362

icacls '\inetpub\wwwroot\' /grant 'IIS_IUSRS:(F)'
    • Failed at OS:

PS C:\> systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
OS Name:                   Microsoft
OS Version:                10.0.17763 N/A Build 17763
    • Passed at OS:

PS C:\> systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
OS Name:                   Microsoft
OS Version:                10.0.18362 N/A Build 18362
  • Copy file to image

docker cp index.html datatest1:c:\inetpub\wwwroot
  • Restart IIS

iisreset   

# Need stop it first
net start/stop w3svc 
  • Error pulling image from private repo, after new namespace created

Ask for setting
  • Error response from daemon: removal of container xxx is already in progress

#for Windows:
del D:\ProgramData\docker\containers\{CONTAINER ID}
del D:\ProgramData\docker\windowsfilter\{CONTAINER ID}
#Then restart the Docker Desktop
  • Grant permission to IIS user

    • Error:

"InnerException":{"Message":"An error has occurred.","ExceptionMessage":"Access to the path 'C:\\inetpub\\wwwroot\\App_Data\\BodyPart_481b6424-f9a5-4608-894d-406145a48445' is denied.","ExceptionType":"System.UnauthorizedAccessException"
    • Solve:

--- Dockerfile ---
RUN icacls 'C:\inetpub\wwwroot\XXX' /grant 'IIS_IUSRS:(F)'
  • Install docker on Windows Server 2019 – native installer

# Run PowerShell As Admin!!! (important)

Install-WindowsFeature containers -Restart
Install-Module -Name DockerMsftProvider -Repository PSGallery -Force
Install-Package -Name docker -ProviderName DockerMsftProvider
Start-Service Docker

# Ref: https://4sysops.com/archives/install-docker-on-windows-server-2019/
# Ref: https://docs.docker.com/ee/docker-ee/windows/docker-ee/
  • Install docker on Windows Server 2019 – manual – unsuccessful

# Path refer to the error message
# Version refer the latest version

cd C:\Users\Administrator\AppData\Local\Temp\DockerMsftProvider

Start-BitsTransfer -Source https://dockermsft.blob.core.windows.net/dockercontainer/docker-19-03-1.zip -Destination docker-19-03-1.zip

Get-FileHash -Path docker-19-03-1.zip -Algorithm SHA256

Install-Package -Name docker -ProviderName DockerMsftProvider -Verbose

Restart-Computer -Force
  • Uninstall docker on Windows Server 2019 – native installer

Uninstall-Package -Name docker -ProviderName DockerMsftProvider
Uninstall-Module -Name DockerMsftProvider
  • Size of images

Oct '18

microsoft/windowsservercore latest f8dc15f55717 12 days ago 10.9GB 
microsoft/nanoserver latest 4c872414bf9d 12 days ago 1.17GB 
microsoft/aspnet latest 02dfa1e1baeb 5 weeks ago 13.6GB 
nanoserver/iis latest 7eac2eab1a5c 4 months ago 1.29GB
  • Quick start running a windows container app

----- Dockerfile -----
# The `FROM` instruction specifies the base image. You are 
# extending the `microsoft/aspnet` image. 

FROM microsoft/aspnet 

# The final instruction copies the site you published earlier into the container. 
COPY ./bin/Release/PublishOutput/ /inetpub/wwwroot
EXPOSE 80
----------------------


docker build -t mvcrandomanswers .
docker run -d --rm -p 8000:80 --name randomanswers mvcrandomanswers

docker tag mvcrandomanswers xx.registry/xx_project/mvcrandomanswers:latest
docker push xx.registry/xx_project/mvcrandomanswers:latest

379 Comments

  1. On the front lines of local sorrow, azithromycintok positively understands the ins and outs of this industry. Cited at our matrix survey as a replacement for not pursuing gradual portion reduction (GDR) on a hospice tenant, our Waltz doctor pill roller provided an unequalled condensation of why a swiftness should not aim GDRs as aggressively on hospice residents, and the deficiency was dropped on appeal.

  2. Henry suggested a 3-pronged approach, which consisted of an oral immuno-booster, an additional immune approach catalyst to be delivered on intra-muscular injection, and a superficial treatment to prolong infection to a minimum. At the hour George was also receiving periodic treatments of Recovery EQ for the benefit of mutual issues, which Henry had prescribed some months before. I expressed my concerns give compounding these treatments, and Henry in the same instant again took the measure to carefully make plain the how’s & why’s of each treatment, and what their specific relationships with each other would entail. In impolite, Henry “wrote the libretto” on how he tenderness http://www.hfaventolin.com would recover. He was adamant that we not but maintain with the Amelioration, but expand the doses diet over and above the next 3-4 weeks.
    Good stuff. Regards.

  3. Rightful wanted to disclose a elephantine ‘as a result of you’ against stromectolc.com changing my living! Since bothersome the Bio-identical hormones, following the G-I diet, I have lost 6 and a half pounds, my crust is wonderful, I be subjected to all my old forcefulness pursuing and really, I just feel fantastic! Rarely, no one believes that I am 47, nor a seizure survivor! I at the end of the day look quicken to working with you in the expected (which is unquestionably incandescent!) Kudos. Lots of knowledge.

  4. followers definition social media , community cast ranked Buy Ivermectin 3mg community imdb community advocates west allis buy ivermectin shop buy ivermectin 6 mg, ivermectin pills. community gif . community first credit union manitowoc wi , community first credit union kimberly positive affirmations self love .

  5. m98 slot แหล่งอัพเดทสล็อตปัจจุบัน คุณจะได้เล่นสล็อตใหม่ ก่อนผู้ใด เพียงแค่สมัครสมาชิกกับพวกเรา ถ้าเกิดคุณกำลังสงสัยเกี่ยวกับเกมที่ ตามที่สุดในช่วงเวลานี้ คุณจำต้องไม่พลาด พีจีสล็อต

  6. ทางเข้าpg เป็นอีกหนึ่ง ปากทางเข้าพนัน PGSLOT เกมสล็อตออนไลน์ ยอดนิยมอย่างยิ่งที่สุด เนื่องด้วยเป็นเว็บไซต์พนัน สล็อตออนไลน์ ประสิทธิภาพ ที่เปิดให้บริการPG ที่เยี่ยมที่สุด

173 Trackbacks / Pingbacks

  1. keto cauliflower mac and cheese
  2. buy viagra online cheapest
  3. viagra pills
  4. cheapest viagra
  5. sildenafil citrate 100mg
  6. canada viagra
  7. generic cialis tadalafil
  8. cialis daily
  9. buy cialis pills
  10. cialis pills online
  11. generic viagra
  12. sildenafil 50mg
  13. online viagra
  14. eli lilly cialis
  15. online generic viagra
  16. viagra 20 mg coupon
  17. atl gay dating
  18. where can you buy viagra over the counter uk
  19. over the counter cialis
  20. viagra sample
  21. generic viagra cost
  22. cialis 5mg tadalafil
  23. viagra coupon
  24. buy cheap viagra online without prescription
  25. cost of viagra in canada
  26. how to get female viagra pills
  27. order generic cialis
  28. viagra for sale without prescription
  29. search cheap viagra
  30. quarter of a viagra pill
  31. does blue cross blue shield cover cialis and viagra for men over 55
  32. cialis dosing
  33. discount tadalafil
  34. buy viagra cheap
  35. viagra on line
  36. viagra online pharmacy
  37. viagra cheap online
  38. viagra without a doctors approval
  39. vi without doctor prescription
  40. goodrx viagra
  41. viagra connect
  42. walmart viagra
  43. herbal viagra
  44. women take viagra
  45. natural viagra foods
  46. cheap viagra prescription
  47. viagra naturel
  48. cost of viagra
  49. viagra over the counter
  50. cialis viagra
  51. sildenafil goodrx
  52. teva sildenafil
  53. viagra price
  54. meritking
  55. elexusbet
  56. eurocasino
  57. madridbet
  58. meritroyalbet
  59. eurocasino
  60. eurocasino
  61. meritroyalbet
  62. alternatives to cialis
  63. котел настенный
  64. canada pharmacies online
  65. canadian online pharmacies
  66. canadianpharmacy
  67. canadian prescriptions online
  68. andere.strikingly.com
  69. keuybc.estranky.skclanky30-facts-you-must-know--a-covid-cribsheet.html
  70. northwest pharmacy canada
  71. Canadian Pharmacies Shipping to USA
  72. https://graph.org/The-Way-To-Get-Health-Care-At-Home-During-COVID-19---Health--Fitness-04-07
  73. chubo3.wixsite.comcanadian-pharmacypostwhat-parents-must-find-out-about-kids-and-covid-19
  74. canadian-pharmacies0.yolasite.com
  75. canadian pharmacy world
  76. https://62553dced4718.site123.me/
  77. https://seketu.gonevis.com/high-10-tips-with-order-medicine-online-1/
  78. canadian drugstore
  79. 625a9a98d5fa7.site123.meblogage-dependence-of-healthcare-interventions-for-covid-19-in-ontario-canada
  80. hernswe.gonevis.comscientists-model-true-prevalence-of-covid-19-throughout-pandemic
  81. selomns.gonevis.coma-modified-age-structured-sir-model-for-covid-19-type-viruses
  82. https://fwervs.gumroad.com/
  83. trosorin.mystrikingly.com
  84. sasnd0.wixsite.comcialispostimpotent-victims-can-now-cheer-up-try-generic-tadalafil-men-health
  85. generic-cialis-20-mg.yolasite.com
  86. hsoybn.estranky.skclankytadalafil-from-india-vs-brand-cialis---sexual-health.html
  87. where to buy cialis online
  88. hemuyrt.livejournal.com325.html
  89. https://site373681070.fo.team/
  90. buy cialis online cheap
  91. ghswed.wordpress.com20220427he-final-word-information-to-online-pharmacies
  92. global pharmacy canada
  93. https://kuebser.estranky.sk/clanky/supereasy-methods-to-study-every-part-about-online-medicine-order-discount.html
  94. kewertyn.wordpress.com20220427expect-more-virtual-house-calls-out-of-your-doctor-thanks-to-telehealth-revolution
  95. online canadian pharmacy
  96. canadian pharmacy
  97. canadian pharmacies without an rx
  98. canadian-pharmaceuticals-online.yolasite.com
  99. https://online-pharmacies0.yolasite.com/
  100. https://6270e49a4db60.site123.me/blog/the-untold-secret-to-mastering-aspirin-in-just-7-days-1
  101. https://deiun.flazio.com/
  102. kertyun.flazio.com
  103. kerntyas.gonevis.comthe-mafia-guide-to-online-pharmacies
  104. canadian pharmaceuticals
  105. womed7.wixsite.compharmacy-onlinepostnew-ideas-into-canada-pharmacies-never-before-revealed
  106. kerntyast.flazio.com
  107. https://sekyuna.gonevis.com/three-step-guidelines-for-online-pharmacies/
  108. canada online pharmacies
  109. canadian government approved pharmacies
  110. https://site273035107.fo.team/
  111. prescriptions from canada without
  112. canada drug
  113. online pharmacies
  114. https://hekluy.ucraft.site/
  115. canadian pharmaceuticals online
  116. canadian pharmacy cialis
  117. buy viagra usa
  118. lwerts.livejournal.com276.html
  119. https://avuiom.sellfy.store/
  120. https://pharmacies.bigcartel.com/
  121. kwersd.mystrikingly.com
  122. https://gewsd.estranky.sk/clanky/drugstore-online.html
  123. kqwsh.wordpress.com20220516what-everybody-else-does-when-it-comes-to-online-pharmacies
  124. site592154748.fo.team
  125. lasert.gonevis.comrecommended-canadian-pharmacies-2
  126. canada pharmacies online prescriptions
  127. dkyubn.bizwebs.com
  128. https://asebg.bigcartel.com/canadian-pharmacy
  129. online canadian pharmacy
  130. https://kertvbs.webgarden.com/
  131. swenqw.company.site
  132. https://kewburet.wordpress.com/2022/04/27/how-to-keep-your-workers-healthy-during-covid-19-health-regulations/
  133. 628f789e5ce03.site123.meblogwhat-everybody-else-does-when-it-comes-to-canadian-pharmacies
  134. canadian-pharmaceutical.webflow.io
  135. online pharmacy
  136. canada drugs
  137. hub.docker.comrgservpharmacies
  138. pharmacy canada
  139. global pharmacy canada
  140. https://selera.mystrikingly.com/
  141. canadian prescription drugstore
  142. gevcaf.estranky.czclankysafe-canadian-online-pharmacies.html
  143. https://kwersv.proweb.cz/
  144. canadian pharmacy world
  145. safe canadian online pharmacies
  146. canadian pharmacys
  147. https://heklrs.wordpress.com/2022/06/14/canadian-government-approved-pharmacies/
  148. https://iercvsw.wordpress.com/2022/06/14/canadian-pharmacies-the-fitting-manner/
  149. 2september
  150. site955305180.fo.team
  151. 62b2f636ecec4.site123.meblogcanadian-pharmaceuticals-online
  152. 62b2ffff12831.site123.meblogcanadian-pharmaceuticals-for-usa-sales
  153. https://thefencefilm.co.uk/community/profile/hswlux/
  154. https://anewearthmovement.org/community/profile/mefug/
  155. http://sandbox.autoatlantic.com/community/profile/kawxvb/
  156. http://lwerfa.iwopop.com/
  157. canadian viagra
  158. highest rated canadian pharmacies
  159. www.reddit.comuserdotijezocomments9xlg6gonline_pharmacies
  160. https://my.desktopnexus.com/Pharmaceuticals/journal/canadian-pharmaceuticals-for-usa-sales-38346/
  161. www.formlets.comformstH7aROl1ugDpCHqB
  162. www.divephotoguide.comuserpharmaceuticals
  163. canadian pharmacy king
  164. buy cialis us pharmacy
  165. canada pharmacy online
  166. lsdevs.iwopop.com
  167. canadian pharmacies that ship to us
  168. pinshape.com/users/2441621-canadian-pharmaceutical-companies
  169. 500px.compphraspilliti
  170. canada pharmacies online
  171. search.naver.comsearch.naver?where=nexearch
  172. canadian pharmacy online 24
  173. 3formerly

Leave a Reply

Your email address will not be published.