Skip to content

Instantly share code, notes, and snippets.

@shurick81
Created May 13, 2020 10:34
Show Gist options
  • Save shurick81/e5463002c4a4b66329aa6894bc6189a7 to your computer and use it in GitHub Desktop.
Save shurick81/e5463002c4a4b66329aa6894bc6189a7 to your computer and use it in GitHub Desktop.
Docker
Enable-WindowsOptionalFeature -Online -FeatureName:Microsoft-Hyper-V -All
choco install docker-desktop;
$dockerSettingsFilePath = "$env:USERPROFILE\AppData\Roaming\Docker\settings.json";
$dockerSettings = Get-Content -Raw -Path $dockerSettingsFilePath | ConvertFrom-Json;
$dockerSettings.filesharingDirectories = @( "C:\" );
$dockerSettings | ConvertTo-Json | Set-Content $dockerSettingsFilePath;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment