tag:help.appveyor.com,2012-11-13:/discussions/problems/24040-unable-to-switch-to-linux-containers-even-though-i-believe-our-organisation-is-on-a-premium-planAppVeyor: Discussion 2019-08-21T21:01:25Ztag:help.appveyor.com,2012-11-13:Comment/473597632019-06-17T19:12:02Z2019-06-17T19:24:49ZUnable to switch to linux containers even though I believe our organisation is on a premium plan. <div><p>Hi John,</p>
<p>Please use <code>Windows Server 2019</code> image we recently introduced for builds like yours. It is enabled for your account. Usage examples are <a href="https://ci.appveyor.com/project/appveyor-tests/win2k19-azure/builds/24580220">here</a>.</p>
<p>Please let us know how it goes.</p>
<p>Ilya.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/473597632019-06-20T06:41:37Z2019-06-21T08:26:13ZUnable to switch to linux containers even though I believe our organisation is on a premium plan. <div><p>Hi Ilya,</p>
<p>That has helped, thanks. Am I right in thinking only the D:/ drive can be shared with docker? In my linux implementation I volumed the project directory, this doesn't seem to be so easy on windows.</p>
<p>Thanks,</p>
<p>John</p></div>john.bradshawtag:help.appveyor.com,2012-11-13:Comment/473597632019-06-20T17:42:34Z2019-06-20T17:42:34ZUnable to switch to linux containers even though I believe our organisation is on a premium plan. <div><p>Try junction point. Something like this should work:</p>
<pre>
<code>icacls %APPVEYOR_BUILD_FOLDER% /grant everyone:f
mklink /J D:\%APPVEYOR_PROJECT_SLUG% %APPVEYOR_BUILD_FOLDER%
docker-switch-linux
docker run --rm -v D:/%APPVEYOR_PROJECT_SLUG%:/%APPVEYOR_PROJECT_SLUG% busybox ls /%APPVEYOR_PROJECT_SLUG%</code>
</pre>
<p>Here we create a folder on <code>D:\</code> with the same name as your project URL slug and link it to your project folder on <code>C:\</code>. Then mount it to the Linux container (<code>busybox</code> in the sample). Note that share credentials are done with separate user (not <code>appveyor</code> under which build is running) you need to change ACLs if (see <code>icacls</code> in the sample) for the build folder.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/473597632019-06-20T17:44:49Z2019-06-20T17:44:49ZUnable to switch to linux containers even though I believe our organisation is on a premium plan. <div><p>Update: sample is in <code>CMD</code>, but if you prefer <code>PowerShell</code>, just change environment variables notation to <code>$env:variable_name</code></p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/473597632019-06-21T08:16:20Z2019-06-21T08:28:33ZUnable to switch to linux containers even though I believe our organisation is on a premium plan. <div><p>Hi Ilya,<br>
I’ll try that<br>
Thanks again!</p></div>john.bradshawtag:help.appveyor.com,2012-11-13:Comment/473597632019-06-21T08:28:05Z2019-06-21T08:28:06ZUnable to switch to linux containers even though I believe our organisation is on a premium plan. <div><p>That worked great. Thanks Ilya, although mklink needs to be run in CMD or replaced with New-Item with the SymbolicLink type for Powershell</p></div>john.bradshawtag:help.appveyor.com,2012-11-13:Comment/473597632019-06-21T17:58:44Z2019-06-21T17:58:44ZUnable to switch to linux containers even though I believe our organisation is on a premium plan. <div><p>Thank you, another reminder for me not to advise anything without trying end-to-end :)</p></div>Ilya Finkelshteyn