Last active
November 29, 2019 06:45
-
-
Save guitarrapc/100fb0b59dfd1fea11737379f35edead to your computer and use it in GitHub Desktop.
In case your DockerNAT Network adaptor always reset network profile to public.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh') | |
scoop update | |
scoop install sudo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
New-Item $profile | |
code $profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$connectionProfiles = Get-NetConnectionProfile -interfacealias "vEthernet (DockerNAT)" | |
if ($connectionProfiles.NetworkCategory -eq "Public") { | |
Write-Host "# PLEASE RUN FOLLOWINGS TO ENABLE DOCKER DRIVE SHARE." -ForeGroundColor Yellow | |
Write-Host "Get-NetConnectionProfile -interfacealias "vEthernet (DockerNAT) | sudo Set-NetConnectionProfile -NetworkCategory Private" -ForeGroundColor Cyan | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment